Always allow '-o remount,ro'
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 Mar 2011 16:34:56 +0000 (09:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 Mar 2011 20:33:29 +0000 (13:33 -0700)
commit093aa692861d0c91fd29979c13fc188760a3985b
treef8a3e7abede409592f871ad7ab776bbdb13a7436
parent04516a45b27144cf42bec005ef2de6d505d236a5
Always allow '-o remount,ro'

Allow the mount(8) utility to always operate on all datasets when
remounting them read-only.  This critical for rc.sysinit/umountroot
which remounts the root filesystem read-only during shutdown to
ensure everything is correctly flushed to disk.

Fix minor typo, the check to set zfsutil should use the bitwise
'&'.  I must have accidentally hit the adjacent '*' and obviously
neither the compiler or my code review caught this.  Fix it now.
cmd/mount_zfs/mount_zfs.c