xfstests: generic/317 318 need procfs uid_map/gid_map support
[xfstests-dev.git] / common / rc
index b5eb58264441bda6bcbaf57c08ec2d5895b9870a..ea3af128086d0652918d7a7de692722ac6b0f668 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2142,6 +2142,16 @@ _require_dumpe2fs()
        fi
 }
 
+_require_ugid_map()
+{
+       if [ ! -e /proc/self/uid_map ]; then
+               _notrun "This test requires procfs uid_map support."
+       fi
+       if [ ! -e /proc/self/gid_map ]; then
+               _notrun "This test requires procfs gid_map support."
+       fi
+}
+
 _create_loop_device()
 {
        file=$1