[xfstests PATCH v3 2/5] overlay: define common overlay xattr keys

zhangyi (F)
2018-02-08T03:10:42Z

Define common overlay xattr keys from Linux kernel for ovl tests use.

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
---
common/overlay | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/common/overlay b/common/overlay
index 16f13a8..9000432 100644
--- a/common/overlay
+++ b/common/overlay
@@ -3,6 +3,16 @@
#
. ./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"
+export OVL_XATTR_OPAQUE_VAL="y"
+export OVL_XATTR_IMPURE_VAL="y"
+
# helper function to do the actual overlayfs mount operation
_overlay_mount_dirs()
{
--
2.5.0