svn commit: r246541 - stable/9/sys/fs/msdosfs

Konstantin Belousov kib at FreeBSD.org
Fri Feb 8 10:30:05 UTC 2013


Author: kib
Date: Fri Feb  8 10:30:04 2013
New Revision: 246541
URL: http://svnweb.freebsd.org/changeset/base/246541

Log:
  MFC r246216:
  The mountmsdosfs() function had an insane sanity test, remove it.

Modified:
  stable/9/sys/fs/msdosfs/msdosfs_vfsops.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/fs/   (props changed)

Modified: stable/9/sys/fs/msdosfs/msdosfs_vfsops.c
==============================================================================
--- stable/9/sys/fs/msdosfs/msdosfs_vfsops.c	Fri Feb  8 10:25:24 2013	(r246540)
+++ stable/9/sys/fs/msdosfs/msdosfs_vfsops.c	Fri Feb  8 10:30:04 2013	(r246541)
@@ -553,8 +553,7 @@ mountmsdosfs(struct vnode *devvp, struct
 	}
 
 	if (pmp->pm_RootDirEnts == 0) {
-		if (pmp->pm_Sectors
-		    || pmp->pm_FATsecs
+		if (pmp->pm_FATsecs
 		    || getushort(b710->bpbFSVers)) {
 			error = EINVAL;
 #ifdef MSDOSFS_DEBUG


More information about the svn-src-stable-9 mailing list