aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/filesystems/btrfs.txt3
-rw-r--r--fs/btrfs/super.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/filesystems/btrfs.txt b/Documentation/filesystems/btrfs.txt
index 303b49c6c296..79c08f368ace 100644
--- a/Documentation/filesystems/btrfs.txt
+++ b/Documentation/filesystems/btrfs.txt
@@ -141,8 +141,9 @@ Options with (*) are default options and will not show in the mount options.
141 Specify that 1 metadata chunk should be allocated after every <value> 141 Specify that 1 metadata chunk should be allocated after every <value>
142 data chunks. Off by default. 142 data chunks. Off by default.
143 143
144 acl(*)
144 noacl 145 noacl
145 Disable support for Posix Access Control Lists (ACLs). See the 146 Enable/disable support for Posix Access Control Lists (ACLs). See the
146 acl(5) manual page for more information about ACLs. 147 acl(5) manual page for more information about ACLs.
147 148
148 barrier(*) 149 barrier(*)
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 98a682340935..76eecd13db19 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -324,7 +324,7 @@ enum {
324 Opt_check_integrity, Opt_check_integrity_including_extent_data, 324 Opt_check_integrity, Opt_check_integrity_including_extent_data,
325 Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_rescan_uuid_tree, 325 Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_rescan_uuid_tree,
326 Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard, 326 Opt_commit_interval, Opt_barrier, Opt_nodefrag, Opt_nodiscard,
327 Opt_noenospc_debug, Opt_noflushoncommit, 327 Opt_noenospc_debug, Opt_noflushoncommit, Opt_acl,
328 Opt_err, 328 Opt_err,
329}; 329};
330 330
@@ -347,6 +347,7 @@ static match_table_t tokens = {
347 {Opt_ssd, "ssd"}, 347 {Opt_ssd, "ssd"},
348 {Opt_ssd_spread, "ssd_spread"}, 348 {Opt_ssd_spread, "ssd_spread"},
349 {Opt_nossd, "nossd"}, 349 {Opt_nossd, "nossd"},
350 {Opt_acl, "acl"},
350 {Opt_noacl, "noacl"}, 351 {Opt_noacl, "noacl"},
351 {Opt_notreelog, "notreelog"}, 352 {Opt_notreelog, "notreelog"},
352 {Opt_flushoncommit, "flushoncommit"}, 353 {Opt_flushoncommit, "flushoncommit"},
@@ -552,6 +553,9 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
552 goto out; 553 goto out;
553 } 554 }
554 break; 555 break;
556 case Opt_acl:
557 root->fs_info->sb->s_flags |= MS_POSIXACL;
558 break;
555 case Opt_noacl: 559 case Opt_noacl:
556 root->fs_info->sb->s_flags &= ~MS_POSIXACL; 560 root->fs_info->sb->s_flags &= ~MS_POSIXACL;
557 break; 561 break;