Whamcloud - gitweb
debugfs: fix ncheck so it handles hard links correctly 75/33575/3
authorJaco Kroon <jaco@uls.co.za>
Thu, 2 Aug 2018 18:06:46 +0000 (20:06 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 9 Nov 2018 07:09:29 +0000 (07:09 +0000)
commitcc2d8f9a5f1f9b7d340e3e68aa1a927f47525193
tree50cc32a594d5e1591514c251106e095ab65f99e7
parent97a5284dec2336fef87482ba3509c7ba6353c678
debugfs: fix ncheck so it handles hard links correctly

Due to hard links inodes can have multiple names (except for folders),
ncheck should find all of the names (equal to the number of links to the
inodes, directories excepted), not names to the count of the provided
inodes.

Commit: 4a30e2ae7ced039189ee438065b2f656d83e7e44
Change-Id: I09ae767057ce5c89b6232f1e9bbc94db4fc4e9c1
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-on: https://review.whamcloud.com/33575
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
debugfs/ncheck.c