btrfs-progs: check: introduce print_inode_ref()
authorSu Yue <suy.fnst@cn.fujitsu.com>
Mon, 28 Aug 2017 06:31:47 +0000 (14:31 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:00 +0000 (20:33 +0200)
commit8c39fc0fcd6fa27642107c3b6791ce51f6c0ebb2
tree2971ae7443847e432a7b28fd4ba393bd208480c9
parent2f4bc981d6c8e4ca24ceb21c86172749a96cf3ff
btrfs-progs: check: introduce print_inode_ref()

Introduce print_inode_ref() to print error msg while checking inode ref.

Add args @name_ret and @namelen_ret to check_inode_ref().
Name is essential if the inode item is to be put into lost+found
while doing nlinks repair.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c