Whamcloud - gitweb
debugfs: fix ncheck so it handles hard links correctly
authorJaco Kroon <jaco@uls.co.za>
Thu, 2 Aug 2018 18:06:46 +0000 (20:06 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 5 Aug 2018 16:07:20 +0000 (12:07 -0400)
commit4a30e2ae7ced039189ee438065b2f656d83e7e44
tree837e682b37f7747027ecac09d5bfacdf7ac41d87
parent31ee367e9779c871df96e63e065c0b221831ed73
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.

Signed-off-by: Jaco Kroon <jaco@uls.co.za>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/ncheck.c