diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-01-05 20:58:25 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 16:20:16 -0500 |
commit | 842bef5891aaf13e2dede01d86397d810fde2dd8 (patch) | |
tree | 33b072d33c9c2479cf78e0fdc31bb8be03985349 /Documentation/filesystems/btrfs.txt | |
parent | e8117c26b24098496b6011aabe84e43e0189a506 (diff) |
btrfs: Add "barrier" option to support "-o remount,barrier"
Btrfs can be remounted without barrier, but there is no "barrier" option
so nobody can remount btrfs back with barrier on. Only umount and
mount again can re-enable barrier.(Quite awkward)
Also the mount options in the document is also changed slightly for the
further pairing options changes.
Reported-by: Daniel Blueman <daniel@quora.org>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Mike Fleetwood <mike.fleetwood@googlemail.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'Documentation/filesystems/btrfs.txt')
-rw-r--r-- | Documentation/filesystems/btrfs.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/filesystems/btrfs.txt b/Documentation/filesystems/btrfs.txt index 5dd282dda55c..ce487a2a88f8 100644 --- a/Documentation/filesystems/btrfs.txt +++ b/Documentation/filesystems/btrfs.txt | |||
@@ -38,7 +38,7 @@ Mount Options | |||
38 | ============= | 38 | ============= |
39 | 39 | ||
40 | When mounting a btrfs filesystem, the following option are accepted. | 40 | When mounting a btrfs filesystem, the following option are accepted. |
41 | Unless otherwise specified, all options default to off. | 41 | Options with (*) are default options and will not show in the mount options. |
42 | 42 | ||
43 | alloc_start=<bytes> | 43 | alloc_start=<bytes> |
44 | Debugging option to force all block allocations above a certain | 44 | Debugging option to force all block allocations above a certain |
@@ -138,12 +138,13 @@ Unless otherwise specified, all options default to off. | |||
138 | Disable support for Posix Access Control Lists (ACLs). See the | 138 | Disable support for Posix Access Control Lists (ACLs). See the |
139 | acl(5) manual page for more information about ACLs. | 139 | acl(5) manual page for more information about ACLs. |
140 | 140 | ||
141 | barrier(*) | ||
141 | nobarrier | 142 | nobarrier |
142 | Disables the use of block layer write barriers. Write barriers ensure | 143 | Enable/disable the use of block layer write barriers. Write barriers |
143 | that certain IOs make it through the device cache and are on persistent | 144 | ensure that certain IOs make it through the device cache and are on |
144 | storage. If used on a device with a volatile (non-battery-backed) | 145 | persistent storage. If disabled on a device with a volatile |
145 | write-back cache, this option will lead to filesystem corruption on a | 146 | (non-battery-backed) write-back cache, nobarrier option will lead to |
146 | system crash or power loss. | 147 | filesystem corruption on a system crash or power loss. |
147 | 148 | ||
148 | nodatacow | 149 | nodatacow |
149 | Disable data copy-on-write for newly created files. Implies nodatasum, | 150 | Disable data copy-on-write for newly created files. Implies nodatasum, |