Whamcloud - gitweb
debugfs: allow the undel command reallocate without linking the inode
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 Jan 2008 16:37:20 +0000 (11:37 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Jan 2008 16:43:41 +0000 (11:43 -0500)
commitb026d539e67ca4bd1a7ef3743888c594fad7bfff
tree9f4f9043fc8ec71ac0035b8c010fcd275e2f77c0
parentd66c38329e9897563bd29908043e5187f868b46d
debugfs: allow the undel command reallocate without linking the inode

When recovering a large number of deleted files, linking the undeleted
inodes to directories may require a directory to be expanded.  This
could allocate a block that that had been used by one of the
yet-to-be-undeleted files.  So the 'undel' command been enhanced to
allow the destination pathname to be optional.  This will allow the
cautious user to undelete all of the inodes without specifying a
destination pathname, and then either use debugfs's link command to
add hard links, or use e2fsck to link all of the recovered files to
the lost+found directory.

Addresses-Sourceforge-Feature-Request: #967141

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