Date: Fri, 3 Nov 2006 09:10:36 GMT From: Csaba Henk <csaba.henk@creo.hu> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/105093: ext2fs on read-only media cannot be mounted Message-ID: <200611030910.kA39Aagt058943@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/105093; it has been noted by GNATS. From: Csaba Henk <csaba.henk@creo.hu> To: bug-followup@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611030910.kA39Aagt058943>