From ad688e43f1b78921ce88cb5f225cd2126c6042f1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 22 Oct 2013 18:35:56 +0200 Subject: [PATCH] Enable user_xattr and change Pydio conf to use xattr as metastore --- root/etc/e-smith/db/configuration/defaults/pydio/Metastore | 1 + root/etc/e-smith/templates/etc/fstab/052EnableXattr | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 root/etc/e-smith/db/configuration/defaults/pydio/Metastore create mode 100644 root/etc/e-smith/templates/etc/fstab/052EnableXattr diff --git a/root/etc/e-smith/db/configuration/defaults/pydio/Metastore b/root/etc/e-smith/db/configuration/defaults/pydio/Metastore new file mode 100644 index 0000000..18c5e90 --- /dev/null +++ b/root/etc/e-smith/db/configuration/defaults/pydio/Metastore @@ -0,0 +1 @@ +xattr diff --git a/root/etc/e-smith/templates/etc/fstab/052EnableXattr b/root/etc/e-smith/templates/etc/fstab/052EnableXattr new file mode 100644 index 0000000..11bd681 --- /dev/null +++ b/root/etc/e-smith/templates/etc/fstab/052EnableXattr @@ -0,0 +1,9 @@ +{ + # Change usrquota,grpquota,acl => usrquota,grpquota,acl,user_xattr for / file system + @lines = map { + /\s\/\s+ext[234]\s+usrquota,grpquota,acl\s/ && s/usrquota,grpquota,acl/usrquota,grpquota,acl,user_xattr/; + /^\/dev\/main\/.*\s+ext[234]\s+usrquota,grpquota,acl\s/ && s/usrquota,grpquota,acl/usrquota,grpquota,acl,user_xattr/; + $_ + } @lines; + ""; +}