svn commit: r269422 - head/sys/fs/nandfs

Warner Losh imp at FreeBSD.org
Sat Aug 2 05:05:16 UTC 2014


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__,


More information about the svn-src-all mailing list