summaryrefslogtreecommitdiff
path: root/btrfs.c
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2011-11-02 11:42:30 -0400
committerChris Mason <chris.mason@oracle.com>2011-11-02 15:46:10 -0400
commit6055e736045d7e1f83ea77551941c7745ad36ec2 (patch)
treeefb881b6d1d1ea02a2ab159dbb9a956fc496332c /btrfs.c
parentdcdbc1ce18ef73224198d45d8463a86709379202 (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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/btrfs.c b/btrfs.c
index c16dc60a..1def3542 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -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 }
};