diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2011-11-02 11:42:30 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-11-02 15:46:10 -0400 |
commit | 6055e736045d7e1f83ea77551941c7745ad36ec2 (patch) | |
tree | efb881b6d1d1ea02a2ab159dbb9a956fc496332c /btrfs.c | |
parent | dcdbc1ce18ef73224198d45d8463a86709379202 (diff) |
Btrfs-progs: added ioctls and commands to resolve inodes and logical addrs
two new commands that make use of the new path resolving functions
implemented for scrub, doing the resolving in-kernel. the result for both
commands is a list of files belonging to that inode / logical address.
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'btrfs.c')
-rw-r--r-- | btrfs.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -169,6 +169,16 @@ static struct Command commands[] = { "Remove a device from a filesystem.", NULL }, + { do_ino_to_path, -2, + "inspect-internal inode-resolve", "[-v] <inode> <path>\n" + "get file system paths for the given inode.", + NULL + }, + { do_logical_to_ino, -2, + "inspect-internal logical-resolve", "[-v] [-P] <logical> <path>\n" + "get file system paths for the given logical address.", + NULL + }, { 0, 0, 0, 0 } }; |