generic/317,318: fail gracefully if userns not supported
authorEric Sandeen <sandeen@sandeen.net>
Tue, 17 Jun 2014 23:34:39 +0000 (09:34 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 17 Jun 2014 23:34:39 +0000 (09:34 +1000)
commitc728752cfaab72e58895c0d6cb8387aede76ce7c
tree497b3eb2af1440d164b0fb4d752203cf8213d65b
parentbbe5d55a0b64149241096b1ecbc7df64e065df41
generic/317,318: fail gracefully if userns not supported

generic/317 and generic/318 fail un-gracefully on older kernels
which don't support userns; fix that by running a simple test
as a prerequisite and fail gracefully if needed.

Roll that in with the test for executable presence, and make
a new _require_userns()

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc
tests/generic/317
tests/generic/318