55 lines
1.5 KiB
Diff
55 lines
1.5 KiB
Diff
|
From 9219cfd9e5cb86a2123b3159056ad53b6efd578e Mon Sep 17 00:00:00 2001
|
||
|
From: David Sterba <dsterba@suse.cz>
|
||
|
Date: Tue, 27 Mar 2012 00:15:39 +0200
|
||
|
Subject: [PATCH 08/10] btrfs-progs: document inspect-internal commands
|
||
|
|
||
|
Signed-off-by: David Sterba <dsterba@suse.cz>
|
||
|
---
|
||
|
btrfs_cmds.c | 23 +++++++++++++++++++++++
|
||
|
1 files changed, 23 insertions(+), 0 deletions(-)
|
||
|
|
||
|
diff --git a/btrfs_cmds.c b/btrfs_cmds.c
|
||
|
index f7310ee..cb6df70 100644
|
||
|
--- a/btrfs_cmds.c
|
||
|
+++ b/btrfs_cmds.c
|
||
|
@@ -2047,6 +2047,17 @@ out:
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
+/**** man: btrfs inspect-internal inode-resolve
|
||
|
+ *
|
||
|
+ * \Bbtrfs\b \Binspect-internal inode-resolve\b \B[-v]\b\I <inode> <path>\i
|
||
|
+ *
|
||
|
+ * Resolve given inode number to path name.
|
||
|
+ *
|
||
|
+ * Resolve given inode number to path name. This operation does not need to
|
||
|
+ * traverse the whole filesystem, but effectively uses internal
|
||
|
+ * structures.
|
||
|
+ ****/
|
||
|
+
|
||
|
int do_ino_to_path(int nargs, char **argv)
|
||
|
{
|
||
|
int fd;
|
||
|
@@ -2081,6 +2092,18 @@ int do_ino_to_path(int nargs, char **argv)
|
||
|
argv[optind+1]);
|
||
|
}
|
||
|
|
||
|
+/**** man: btrfs inspect-internal logical-resolve
|
||
|
+ *
|
||
|
+ * \Bbtrfs\b \Binspect-internal logical-resolve\b \B[-v] [-P]\b\I <logical> <path>\i
|
||
|
+ *
|
||
|
+ * Resolve given logical block number to path name or inode number.
|
||
|
+ *
|
||
|
+ * Resolve given logical block number to path name or inode number. Can be used
|
||
|
+ * in connection with scrub reports.
|
||
|
+ *
|
||
|
+ * \I-P\i print paths instead of inode numbers
|
||
|
+ ****/
|
||
|
+
|
||
|
int do_logical_to_ino(int nargs, char **argv)
|
||
|
{
|
||
|
int ret;
|
||
|
--
|
||
|
1.7.6.233.gd79bc
|
||
|
|