]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
overlay/013: adjust test expectation to kernel v4.8
authorAmir Goldstein <amir73il@gmail.com>
Wed, 19 Oct 2016 08:52:33 +0000 (11:52 +0300)
committerEryu Guan <eguan@redhat.com>
Fri, 21 Oct 2016 15:20:14 +0000 (23:20 +0800)
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>
tests/overlay/013
tests/overlay/013.out

index e92eeecf90b6fe6a31a7172d94e2843cf4fd7fd7..e99e10aabc9f37ffbb06e42d8f8fb62b59fe2e40 100755 (executable)
@@ -69,6 +69,5 @@ $SCRATCH_MNT/test_lower
 $SCRATCH_MNT/test_upper
 
 # success, all done
-echo "Silence is golden"
 status=0
 exit
index 3e66423b5467b73d7be6eab670c65742b76c5f13..b2c7cc7e2cacbb970a20d7210dbf73f9e2496dbe 100644 (file)
@@ -1,2 +1,2 @@
 QA output created by 013
-Silence is golden
+truncate(test_lower) should have failed