Whamcloud - gitweb
debugfs: optimize ncheck and improve its error checking
authorTheodore Ts'o <tytso@mit.edu>
Mon, 16 Jan 2012 22:49:46 +0000 (17:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Jan 2012 22:49:46 +0000 (17:49 -0500)
commit2b1cae7a2697ec841c41579d29cdcb0ab39ef73e
treef3ad44e136df5f97347d25507579026d2bcd8dc2
parent24d364fc43601ea3d2e01cc506633302fa091d8f
debugfs: optimize ncheck and improve its error checking

Don't call ext2fs_get_pathname() for every single directory; instead,
only call it if we find a matching directory entry.  In addition, if
ext2fs_get_pathname() fails, print the number of the parent directory
in angle parents so the user gets some additional information.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/ncheck.c