kern/116608: [panic] [patch] [msdosfs] msdosfs fails to check mount options

Eugene Grosbein eugen at grosbein.pp.ru
Sun Oct 14 07:50:04 PDT 2007


The following reply was made to PR kern/116608; it has been noted by GNATS.

From: Eugene Grosbein <eugen at grosbein.pp.ru>
To: bug-followup at freebsd.org
Cc:  
Subject: Re: kern/116608: [panic] [patch] [msdosfs] msdosfs fails to check mount options
Date: Sun, 14 Oct 2007 22:47:20 +0800

 Hi!
 
 Here is a version of last patch adjusted for 7.0-PRERELEASE:
 
 --- sys/fs/msdosfs/msdosfs_vfsops.c.orig	2007-08-16 01:40:09.000000000 +0800
 +++ sys/fs/msdosfs/msdosfs_vfsops.c	2007-10-14 17:58:20.000000000 +0800
 @@ -265,6 +265,7 @@
  			}
  		}
  		if (!(pmp->pm_flags & MSDOSFSMNT_RONLY) &&
 +		    !vfs_flagopt(mp->mnt_optnew, "noro", NULL, 0) &&
  		    vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0)) {
  			error = VFS_SYNC(mp, MNT_WAIT, td);
  			if (error)
 @@ -314,10 +315,12 @@
  
  			ro_to_rw = 1;
  		}
 +		if(!vfs_flagopt(mp->mnt_optnew, "noro", NULL, 0)) {
  		vfs_flagopt(mp->mnt_optnew, "ro",
  		    &pmp->pm_flags, MSDOSFSMNT_RONLY);
  		vfs_flagopt(mp->mnt_optnew, "ro",
  		    &mp->mnt_flag, MNT_RDONLY);
 +		}
  
  		if (ro_to_rw) {
  			/* Now that the volume is modifiable, mark it dirty. */


More information about the freebsd-bugs mailing list