diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-02-07 13:19:45 -0800 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2018-02-09 00:57:01 +0800 |
commit | 60ba1274f5d79b41cd80586696c4a07840e95869 (patch) | |
tree | 446255a4eef0449bb8cfc869b2b5895490e5a46e | |
parent | 66f7b4c2ce14def251b69539a3e4798ea89f3402 (diff) | |
download | xfstests-60ba1274f5d79b41cd80586696c4a07840e95869.tar.gz |
xfs/348: dir->symlink corruption must not be allowed
A directory corrupted into a symlink is caught by the local format
ifork verifiers, and previously this test failed to catch such
kernel bug, so fix the test.
Note that the local format ifork verifiers were introduced by commit
0795e004fd4f ("xfs: create structure verifier function for short
form symlinks"), and didn't get wired up until commit 9cfb9b47479e
("xfs: provide a centralized method for verifying inline fork
data").
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r-- | tests/xfs/348.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/xfs/348.out b/tests/xfs/348.out index f4a7a71f78..17d9be2304 100644 --- a/tests/xfs/348.out +++ b/tests/xfs/348.out @@ -239,7 +239,7 @@ would have junked entry "DATA" in directory PARENT_INO would have junked entry "DIR" in directory PARENT_INO would have junked entry "EMPTY" in directory PARENT_INO would have junked entry "FIFO" in directory PARENT_INO -stat: 'SCRATCH_MNT/test/DIR' is a symbolic link +stat: cannot stat 'SCRATCH_MNT/test/DIR': Structure needs cleaning stat: 'SCRATCH_MNT/test/DATA' is a symbolic link stat: cannot stat 'SCRATCH_MNT/test/EMPTY': Structure needs cleaning stat: 'SCRATCH_MNT/test/SYMLINK' is a symbolic link |