nilfs2: add norecovery mount option
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Thu, 19 Nov 2009 18:28:01 +0000 (03:28 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 20 Nov 2009 01:05:52 +0000 (10:05 +0900)
commit0234576d041b9b2cc7043691ea61d2c2ca597aaa
tree1fd5f397cf0a7cb010a3e383a715438e64582b65
parenta057d2c01161444c48b12a60351ae6c7135f6e61
nilfs2: add norecovery mount option

This adds "norecovery" mount option which disables temporal write
access to read-only mounts or snapshots during mount/recovery.
Without this option, write access will be even performed for those
types of mounts; the temporal write access is needed to mount root
file system read-only after an unclean shutdown.

This option will be helpful when user wants to prevent any write
access to the device.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Eric Sandeen <sandeen@redhat.com>
Documentation/filesystems/nilfs2.txt
fs/nilfs2/super.c
fs/nilfs2/the_nilfs.c
include/linux/nilfs2_fs.h