[LEDE-DEV] [PATCH 4/4] [RFC] fstools: block.c: Add ability to mount with ACL and XATTR support

lede at daniel.thecshore.com lede at daniel.thecshore.com
Wed May 18 03:12:48 PDT 2016


From: Daniel Dickinson <lede at daniel.thecshore.com>

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 at daniel.thecshore.com>
---
 block.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/block.c b/block.c
index d30b1f6..1da0a12 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_ACL		},
+	{ "noacl",		~MS_ACL		},
+	{ "nouser_xattr",	MS_NOUSER	},
+	{ "user_xattr",		~MS_NOUSER	},
 };
 
 static char *blobmsg_get_strdup(struct blob_attr *attr)
-- 
1.9.1




More information about the Lede-dev mailing list