generic/079: _notrun if fs doesn't support ioctl
authorEryu Guan <eguan@redhat.com>
Mon, 21 Dec 2015 07:07:50 +0000 (18:07 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 07:07:50 +0000 (18:07 +1100)
Overlayfs directory inode doesn't support ioctl and reports
"Inappropriate ioctl", so grep for this error message and _notrun if the
message is found.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/079

index 939c817fff87fa20fd4ba7697adf55b983623dce..041d9c0e913fd02f0cf700c3f7e6bb081be6916d 100755 (executable)
@@ -59,7 +59,7 @@ _scratch_mount || _fail "mount failed"
 
 echo "*** starting up"
 $timmutable -c $SCRATCH_MNT/$seq >$tmp.out 2>&1
-if grep -q 'Operation not supported' $tmp.out; then
+if grep -q -e 'Operation not supported' -e "Inappropriate ioctl" $tmp.out; then
     rm -f $tmp.out
     _notrun "Setting immutable/append flag not supported"
 fi