freebsd-dev/sbin/fsck_ffs
Craig Rodrigues d8f7b008a7 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
2008-03-05 08:25:49 +00:00
..
SMM.doc Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
dir.c Eliminate linked list used to track inodes with an initial link 2004-10-08 20:44:47 +00:00
ea.c
fsck_ffs.8 Mention the default location of alternative super block on a 2005-09-20 08:02:38 +00:00
fsck.h Implements gjournal support. If file system has gjournal support enabled 2006-10-31 22:06:56 +00:00
fsutil.c Implements gjournal support. If file system has gjournal support enabled 2006-10-31 22:06:56 +00:00
gjournal.c Fix -fstrict-aliasing warning. 2006-11-01 10:56:33 +00:00
inode.c Implements gjournal support. If file system has gjournal support enabled 2006-10-31 22:06:56 +00:00
main.c For a mounted file system which is read-only, when 2008-03-05 08:25:49 +00:00
Makefile Convert fsck_ffs to nmount(). This seems to solve 2007-09-19 01:24:19 +00:00
pass1.c In pass1(), cap inosused to fs_ipg rather than allowing arbitrary 2008-02-26 03:08:22 +00:00
pass1b.c The got_siginfo = 0 should have been got_sigalarm=0 to match the other 2004-10-10 06:37:56 +00:00
pass2.c In pass2check(): Be more strict with the inode information before further 2008-02-26 03:05:48 +00:00
pass3.c Eliminate linked list used to track inodes with an initial link 2004-10-08 20:44:47 +00:00
pass4.c Eliminate linked list used to track inodes with an initial link 2004-10-08 20:44:47 +00:00
pass5.c Implements gjournal support. If file system has gjournal support enabled 2006-10-31 22:06:56 +00:00
setup.c Be more careful when checking superblock. We have already checked 2008-02-26 03:03:17 +00:00
utilities.c Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00