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
dir.c
ea.c
fsck_ffs.8
fsck.h
fsutil.c
gjournal.c
inode.c
main.c For a mounted file system which is read-only, when 2008-03-05 08:25:49 +00:00
Makefile
pass1.c In pass1(), cap inosused to fs_ipg rather than allowing arbitrary 2008-02-26 03:08:22 +00:00
pass1b.c
pass2.c In pass2check(): Be more strict with the inode information before further 2008-02-26 03:05:48 +00:00
pass3.c
pass4.c
pass5.c
setup.c Be more careful when checking superblock. We have already checked 2008-02-26 03:03:17 +00:00
utilities.c