block.c: Add ability to mount with ACL and XATTR support
authorDaniel Dickinson <lede@daniel.thecshore.com>
Sun, 22 May 2016 09:30:38 +0000 (05:30 -0400)
committerJohn Crispin <john@phrozen.org>
Thu, 19 May 2016 05:47:57 +0000 (07:47 +0200)
Some users will want to use OpenWrt/LEDE devices as NAS
devices and have full POSIX ACL and user_xattr support
(along with other possible use cases), therefore add
support to mount with POSIX ACLs and/or user XATTR
support.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
block.c

diff --git a/block.c b/block.c
index 397db0f7e709810a50a7c443af061523f413d393..13992f20ebbce0bccb0fb664188c6d2b3e9a3c81 100644 (file)
--- a/block.c
+++ b/block.c
@@ -170,6 +170,10 @@ static const struct mount_flag mount_flags[] = {
        { "relatime",           MS_RELATIME     },
        { "norelatime",         ~MS_RELATIME    },
        { "strictatime",        MS_STRICTATIME  },
+       { "acl",                MS_POSIXACL     },
+       { "noacl",              ~MS_POSIXACL    },
+       { "nouser_xattr",       MS_NOUSER       },
+       { "user_xattr",         ~MS_NOUSER      },
 };
 
 static char *blobmsg_get_strdup(struct blob_attr *attr)