Whamcloud - gitweb
LU-14600 e2fsck: check trusted.link after linking inode 24/43324/3
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Apr 2021 02:41:43 +0000 (20:41 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Apr 2021 08:29:54 +0000 (08:29 +0000)
commit87164b117be3bdeb1becf1960b80687637eda08f
treeb357a0b403e92f631f8241069a7fe13cfde66fec
parent3250603cb8907ad745e84e439a1cffd29316333b
LU-14600 e2fsck: check trusted.link after linking inode

If the inode is not linked into the namespace, link it into
lost+found before checking the trusted.link xattr to get the
DNE link count.

Fixes: 6528bce00bea ("LU-11446 e2fsck: check trusted.link when fixing nlink")
Test-Parameters: testlist=sanity-lfsck
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I447c1ce32f965311bfed1c08381928737dd9b02c
Reviewed-on: https://review.whamcloud.com/43324
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
e2fsck/pass4.c