mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: generic/317 318 need procfs uid_map/gid_map support
generic/317 and 318 need /proc/<pid>/[uid_map|gid_map], test fail on older kernels without that support. Add a _require_ugid_map() function and called by 317 and 318. Signed-off-by: Eryu Guan <eguan@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user