Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2014 05:05:16 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269422 - head/sys/fs/nandfs
Message-ID:  <201408020505.s7255GAt035462@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Aug  2 05:05:16 2014
New Revision: 269422
URL: http://svnweb.freebsd.org/changeset/base/269422

Log:
  Set the erase block size properly in the case the underlying media
  doesn't advertise an erase block size.
  
  Submitted by: bjg@
  Pointy hat to: imp@

Modified:
  head/sys/fs/nandfs/nandfs_vfsops.c

Modified: head/sys/fs/nandfs/nandfs_vfsops.c
==============================================================================
--- head/sys/fs/nandfs/nandfs_vfsops.c	Sat Aug  2 05:05:10 2014	(r269421)
+++ head/sys/fs/nandfs/nandfs_vfsops.c	Sat Aug  2 05:05:16 2014	(r269422)
@@ -912,7 +912,7 @@ nandfs_mount_device(struct vnode *devvp,
 			/*
 			 * We conclude that this is not NAND storage
 			 */
-			nandfsdev->nd_erasesize = NANDFS_DEF_ERASESIZE;
+			erasesize = NANDFS_DEF_ERASESIZE;
 		} else {
 			DROP_GIANT();
 			g_topology_lock();
@@ -924,7 +924,6 @@ nandfs_mount_device(struct vnode *devvp,
 			return (error);
 		}
 	}
-
 	nandfsdev->nd_erasesize = erasesize;
 
 	DPRINTF(VOLUMES, ("%s: erasesize %x\n", __func__,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408020505.s7255GAt035462>