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
..
2005-02-13 22:25:33 +00:00
2006-04-14 09:20:25 +00:00
2005-01-18 10:09:38 +00:00
2007-12-26 12:20:19 +00:00
2006-11-05 20:12:32 +00:00
2006-10-31 22:36:49 +00:00
2006-10-31 22:07:29 +00:00
2006-09-30 11:02:17 +00:00
2006-10-15 13:51:49 +00:00
2007-11-20 21:25:58 +00:00
2008-02-06 08:03:27 +00:00
2006-09-30 11:12:36 +00:00
2008-02-07 18:10:24 +00:00
2007-11-18 09:18:20 +00:00
2006-04-19 19:21:42 +00:00
2005-11-13 01:47:04 +00:00
2005-02-13 22:25:33 +00:00
2007-07-03 12:46:08 +00:00
2007-11-07 10:53:41 +00:00
2008-02-19 07:09:19 +00:00
2007-09-23 16:06:37 +00:00