aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhangyi (F) <yi.zhang@huawei.com>2018-02-08 11:19:10 +0800
committerEryu Guan <eguan@redhat.com>2018-02-08 20:08:01 +0800
commita79cd9e16141246555d91f53ce12ebad8ce66668 (patch)
treeaa14cd3a4349e929c5677ca03ea81f634cf323bb
parentab5034f7bedae0b760204da546f9fcfd9f02a530 (diff)
downloadxfstests-dev-a79cd9e16141246555d91f53ce12ebad8ce66668.tar.gz
overlay: define common overlay xattr keys
Define common overlay xattr keys from Linux kernel for ovl tests use. Signed-off-by: zhangyi (F) <yi.zhang@huawei.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r--common/overlay8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/overlay b/common/overlay
index 16f13a8fb0..a8b0e9369c 100644
--- a/common/overlay
+++ b/common/overlay
@@ -3,6 +3,14 @@
#
. ./common/module
+# Export overlayfs xattrs and constant value
+export OVL_XATTR_OPAQUE="trusted.overlay.opaque"
+export OVL_XATTR_REDIRECT="trusted.overlay.redirect"
+export OVL_XATTR_IMPURE="trusted.overlay.impure"
+export OVL_XATTR_ORIGIN="trusted.overlay.origin"
+export OVL_XATTR_NLINK="trusted.overlay.nlink"
+export OVL_XATTR_UPPER="trusted.overlay.upper"
+
# helper function to do the actual overlayfs mount operation
_overlay_mount_dirs()
{