summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dickinson <lede@daniel.thecshore.com>2016-05-22 05:30:38 -0400
committerJohn Crispin <john@phrozen.org>2016-05-19 07:47:57 +0200
commit0453f48e509077c83129b8aaceecb4e4430c8309 (patch)
treeb3da40c970c6af66fe91f25b81818fa424e8b89c
parentbfd81bcedca6acae8951a4dbcd4f45933e5f0473 (diff)
downloadfstools-0453f48e509077c83129b8aaceecb4e4430c8309.tar.gz
block.c: Add ability to mount with ACL and XATTR support
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>
-rw-r--r--block.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/block.c b/block.c
index 397db0f..13992f2 100644
--- 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)