]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test hardlink to unlinked file
authorEryu Guan <eguan@redhat.com>
Mon, 4 May 2015 12:55:33 +0000 (22:55 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 4 May 2015 12:55:33 +0000 (22:55 +1000)
commitddb8f4e390eed99ed1b99011217b8a495ec833ae
tree0dc6c6e08fd1276bde7e34ba0046dbf5750d2686
parent0a0dd14681e8f28cf731c9e347d153d250c89a4c
generic: test hardlink to unlinked file

Kernel commit

aae8a97 fs: Don't allow to create hardlink for deleted file

disabled hardlink to unlinked file.

Test the race between link and unlink, which could end up adding link
count to an unlinked file and leading to fs corruption on xfs.

Test case was originally written by Eric Sandeen.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/084 [new file with mode: 0755]
tests/generic/084.out [new file with mode: 0644]
tests/generic/group