src/t_immutable: add ftruncate to append only tests
authorAmir Goldstein <amir73il@gmail.com>
Fri, 7 Apr 2017 09:15:39 +0000 (12:15 +0300)
committerEryu Guan <eguan@redhat.com>
Sat, 8 Apr 2017 15:22:58 +0000 (23:22 +0800)
commita589a208405d61215c52987c7d522e33b1321d34
tree7f5b016bcbd5aa980caae9bc41c2fb4cb8092307
parent941ea73ec3c5bff0af568d286e2f258472672369
src/t_immutable: add ftruncate to append only tests

The truncate and ftruncate syscalls check the IS_APPEND() flag
in 2 different vfs code paths and I had to fix both in order to
fix overlayfs IS_APPEND() violations.

Add the ftruncate test to t_immutable, so overlay/030 can verify
the fix.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/t_immutable.c