generic: simple permission check on hard links
authorEryu Guan <eguan@redhat.com>
Wed, 7 Sep 2016 09:57:15 +0000 (17:57 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 8 Sep 2016 07:02:14 +0000 (15:02 +0800)
commit0cc271642a41e04c621dbb681960022736e56fe2
tree4c69b18028433b1b07fa484917cfd6c963334cfe
parentd67700c75a0af8e926fc5bf5111217454a217c3a
generic: simple permission check on hard links

Overlayfs had a bug that hardlinks don't share inode, if
chmod/chown/etc. is performed on one of the links then the inode
belonging to the other one won't be updated. The following patch
fixed this issue:

51f7e52 ovl: share inode for hard link

This is a simple test that has nothing overlayfs specific, so make
it a generic test.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/378 [new file with mode: 0755]
tests/generic/378.out [new file with mode: 0644]
tests/generic/group