ext4: try to deprecate noacl and noxattr_user mount options
authorTheodore Ts'o <tytso@mit.edu>
Mon, 5 Mar 2012 03:06:20 +0000 (22:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 5 Mar 2012 03:06:20 +0000 (22:06 -0500)
No other file system allows ACL's and extended attributes to be
enabled or disabled via a mount option.  So let's try to deprecate
these options from ext4.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c

index 960681fae64e59af75d6adf655fc544f2aad9754..25b1f0374f010be9c797c2c7aa3c19eedde2b1cf 100644 (file)
@@ -1443,6 +1443,10 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token,
        if (args->from && match_int(args, &arg))
                return -1;
        switch (token) {
+       case Opt_noacl:
+       case Opt_nouser_xattr:
+               ext4_msg(sb, KERN_WARNING, deprecated_msg, opt, "3.5");
+               break;
        case Opt_sb:
                return 1;       /* handled by get_sb_block() */
        case Opt_removed: