kern/105093: ext2fs on read-only media cannot be mounted

Csaba Henk csaba.henk at creo.hu
Fri Nov 3 09:10:40 UTC 2006


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

From: Csaba Henk <csaba.henk at creo.hu>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/105093: ext2fs on read-only media cannot be mounted
Date: Fri, 3 Nov 2006 10:05:04 +0100

 --n/aVsWSeQ4JHkrmm
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 There was a typo in the patch. Here is the fixed version.
 
 Csaba
 
 --n/aVsWSeQ4JHkrmm
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="ext2-ro-fix.diff"
 
 --- ext2_vfsops.c.orig	Fri Nov  3 01:31:42 2006
 +++ ext2_vfsops.c	Fri Nov  3 01:34:10 2006
 @@ -601,7 +601,7 @@ ext2_mountfs(devvp, mp, td)
  	int error;
  	int ronly;
  
 -	ronly = vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0);
 +	ronly = (mp->mnt_flag & MNT_RDONLY) ? 1 : 0;
  	/* XXX: use VOP_ACESS to check FS perms */
  	DROP_GIANT();
  	g_topology_lock();
 
 --n/aVsWSeQ4JHkrmm--


More information about the freebsd-bugs mailing list