summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2008-03-05 08:25:49 +0000
committerrodrigc <rodrigc@FreeBSD.org>2008-03-05 08:25:49 +0000
commitfbbd44cc2de010dead74208bea6cbd581cf92150 (patch)
tree715881740f418f539b327bb437826ea6c3a5475b /sys
parentf278be87418b8dbc1e3ebf79abb2ea0d08ca9bd7 (diff)
downloadFreeBSD-src-fbbd44cc2de010dead74208bea6cbd581cf92150.zip
FreeBSD-src-fbbd44cc2de010dead74208bea6cbd581cf92150.tar.gz
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
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud