From: Andreas Dilger Date: Thu, 15 Apr 2021 23:50:28 +0000 (-0600) Subject: LU-14600 e2fsck: trusted.link unref inode test case X-Git-Tag: v1.45.6.wc7~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f46cb5c041147772639c56d993a4313e2655399d;p=tools%2Fe2fsprogs.git LU-14600 e2fsck: trusted.link unref inode test case Update the f_trusted_link test case to include a locally unreferenced inode that has a trusted.link xattr. The inode should be linked into lost+found because of the xattr, even if it has no blocks/data, and the link cound should be extracted from the trusted.link xattr. Change-Id: Ifad410d0bc1ceb140216dbed48e54ea3825abe3b Signed-off-by: Andreas Dilger Reviewed-on: https://review.whamcloud.com/43335 Tested-by: jenkins Reviewed-by: Li Dongyang Tested-by: Maloo --- diff --git a/tests/f_trusted_link/expect.1 b/tests/f_trusted_link/expect.1 index 5e957a1..1063d22 100644 --- a/tests/f_trusted_link/expect.1 +++ b/tests/f_trusted_link/expect.1 @@ -6,8 +6,11 @@ Inode 15 ref count is 7, should be 6. Fix? yes Inode 16 ref count is 3, should be 6. Fix? yes +Unattached inode 18 +Connect to /lost+found? yes + Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** -test_filesys: 17/4096 files (0.0% non-contiguous), 6424/16384 blocks +test_filesys: 18/4096 files (0.0% non-contiguous), 6424/16384 blocks Exit status is 1 diff --git a/tests/f_trusted_link/expect.2 b/tests/f_trusted_link/expect.2 index 3e1a029..a8ff12a 100644 --- a/tests/f_trusted_link/expect.2 +++ b/tests/f_trusted_link/expect.2 @@ -3,5 +3,5 @@ Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information -test_filesys: 17/4096 files (0.0% non-contiguous), 6424/16384 blocks +test_filesys: 18/4096 files (0.0% non-contiguous), 6424/16384 blocks Exit status is 0 diff --git a/tests/f_trusted_link/image.gz b/tests/f_trusted_link/image.gz index 18dae46..8e25873 100644 Binary files a/tests/f_trusted_link/image.gz and b/tests/f_trusted_link/image.gz differ