]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: test chattr lower file in overlay
authorzhangyi (F) <yi.zhang@huawei.com>
Thu, 14 Sep 2017 13:27:07 +0000 (21:27 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 17 Sep 2017 14:24:28 +0000 (22:24 +0800)
commit11cf6e7a4a232308114d471a2b64ac4e35d76638
treef826e2406c28ebadde43d78e078cf9872dcaea1c
parentd83632b9aaace4e698895ba7076738e4ad56c16d
overlay: test chattr lower file in overlay

chattr with [iap..] attributes open file for read-only and invoke
ioctl(). If we chattr a lower file in overlay, it will get the lower
file but not trigger copy-up, so ioctl() lead to modification of
that lower file incorrectly. Add this test for this case.

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/overlay/040 [new file with mode: 0755]
tests/overlay/040.out [new file with mode: 0644]
tests/overlay/group