aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2016-10-19 11:52:33 +0300
committerEryu Guan <eguan@redhat.com>2016-10-21 23:20:14 +0800
commitaa96e42b8dd75fc08567b312b00b7e87442b6421 (patch)
tree9a9349a07546b4e84e2dc06d5b0fe835aa9fe8aa
parent044af9dd66328b6d4faab9ebd01ee6380e60d473 (diff)
downloadxfstests-dev-aa96e42b8dd75fc08567b312b00b7e87442b6421.tar.gz
overlay/013: adjust test expectation to kernel v4.8
Commit 4d0c5ba (vfs: do get_write_access() on upper layer of overlayfs) that was merged for kernel v4.8 changes the behavior of execve+truncate in a subtle way. When file is executed from lower and then truncated, the truncation is allowed, becasue it only affects the size of the copied up file and does not affect the VM mapping of the executed lower file. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rwxr-xr-xtests/overlay/0131
-rw-r--r--tests/overlay/013.out2
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/overlay/013 b/tests/overlay/013
index e92eeecf90..e99e10aabc 100755
--- a/tests/overlay/013
+++ b/tests/overlay/013
@@ -69,6 +69,5 @@ $SCRATCH_MNT/test_lower
$SCRATCH_MNT/test_upper
# success, all done
-echo "Silence is golden"
status=0
exit
diff --git a/tests/overlay/013.out b/tests/overlay/013.out
index 3e66423b54..b2c7cc7e2c 100644
--- a/tests/overlay/013.out
+++ b/tests/overlay/013.out
@@ -1,2 +1,2 @@
QA output created by 013
-Silence is golden
+truncate(test_lower) should have failed