Whamcloud - gitweb
LU-14600 e2fsck: trusted.link unref inode test case 35/43335/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Apr 2021 23:50:28 +0000 (17:50 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 16 Apr 2021 06:36:45 +0000 (06:36 +0000)
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 <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43335
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
tests/f_trusted_link/expect.1
tests/f_trusted_link/expect.2
tests/f_trusted_link/image.gz

index 5e957a1..1063d22 100644 (file)
@@ -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
index 3e1a029..a8ff12a 100644 (file)
@@ -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
index 18dae46..8e25873 100644 (file)
Binary files a/tests/f_trusted_link/image.gz and b/tests/f_trusted_link/image.gz differ