]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: truncate running binaries from lower and upper dirs
authorEryu Guan <eguan@redhat.com>
Mon, 25 Jul 2016 17:10:23 +0000 (01:10 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 31 Jul 2016 02:37:08 +0000 (10:37 +0800)
commit2d7ed0ce0366175b57b135c8aa4b850d989a2d39
tree338310fa22d335d6eefce13302f7586765800acd
parent5f29278f84e0d1ecd9d80e19b12fba6c71eb5025
overlay: truncate running binaries from lower and upper dirs

Test truncate running executable binaries from lower and upper dirs.
truncate(2) should return ETXTBSY, not other errno nor segfault

Commit 03bea6040932 ("ovl: get_write_access() in truncate") fixed
this issue.

Reviewed-by: Xiong Zhou <xzhou@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
.gitignore
src/Makefile
src/t_truncate_self.c [new file with mode: 0644]
tests/overlay/013 [new file with mode: 0755]
tests/overlay/013.out [new file with mode: 0644]
tests/overlay/group