diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-01-19 02:23:03 (GMT) |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-12 14:14:49 (GMT) |
commit | 96da09192cda57a356467bd7c91a3641a2e78490 (patch) | |
tree | 7b9e18344074d9bf9c1d71fd6fb0670922937283 /Documentation/filesystems | |
parent | 8dcddfa048de637c8bbfa20ffd22757aeab7c604 (diff) | |
download | linux-96da09192cda57a356467bd7c91a3641a2e78490.tar.xz |
btrfs: Introduce new mount option to disable tree log replay
Introduce a new mount option "nologreplay" to co-operate with "ro" mount
option to get real readonly mount, like "norecovery" in ext* and xfs.
Since the new parse_options() need to check new flags at remount time,
so add a new parameter for parse_options().
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Tested-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/btrfs.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/filesystems/btrfs.txt b/Documentation/filesystems/btrfs.txt index a2b1c50..6593d2e 100644 --- a/Documentation/filesystems/btrfs.txt +++ b/Documentation/filesystems/btrfs.txt @@ -168,6 +168,14 @@ Options with (*) are default options and will not show in the mount options. notreelog Enable/disable the tree logging used for fsync and O_SYNC writes. + nologreplay + Disable the log tree replay at mount time to prevent filesystem + from getting modified. + Must be used with 'ro' mount option. + A filesystem mounted with this option cannot transition to a + read-write mount via remount,rw - the filesystem must be unmounted + and mounted back again if read-write access is desired. + usebackuproot Enable attempts to use backup tree roots if a bad tree root is found at mount time. |