overlay: define common overlay xattr keys
authorzhangyi (F) <yi.zhang@huawei.com>
Thu, 8 Feb 2018 03:19:10 +0000 (11:19 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 8 Feb 2018 12:08:01 +0000 (20:08 +0800)
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>
common/overlay

index 16f13a8fb0cb479cc6b322a25fab53e167c5aef6..a8b0e9369c86e1dc937527ef02dfdcb28dac76c3 100644 (file)
@@ -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()
 {