Date: Wed, 5 Mar 2008 08:25:49 +0000 (UTC) From: Craig Rodrigues <rodrigc@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/fsck_ffs main.c Message-ID: <200803050825.m258Ppv2016738@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rodrigc 2008-03-05 08:25:49 UTC FreeBSD src repository Modified files: sbin/fsck_ffs main.c Log: For a mounted file system which is read-only, when doing the MNT_RELOAD, pass in "ro" and "update" string mount options to nmount() instead of MNT_RDONLY and MNT_UPDATE flags. Due to the complexity of the mount parsing code especially with respect to the root file system, passing in MNT_RDONLY and MNT_UPDATE flags would do weird things and would cause fsck to convert the root file system from a read-only mount to read-write. To test: - boot into single user mode - show mounted file systems with: mount - root file system should be mounted read-only - fsck / - show mounted file systems with: mount - root file system should still be mounted read-only PR: 120319 MFC after: 1 month Reported by: yar Revision Changes Path 1.49 +3 -1 src/sbin/fsck_ffs/main.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803050825.m258Ppv2016738>