path: root/man
diff options
authorDavid Sterba <>2013-09-18 18:19:30 +0200
committerChris Mason <>2013-10-16 08:23:11 -0400
commit7fbcc39c3075b88718bcb3e8e6f3ff599a4e9f86 (patch)
tree50c7072f9a53f9270b0077206ad38ec5be14a2f4 /man
parent8e937074a4ecc1a70f4a10cfff94e60a916ce82f (diff)
btrfs-progs: look up the containing tree root id
Find the tree id of the containing subvolume for a given file or directory. For subvolume return it's own id. $ btrfs inspect-internal rootid <path> Signed-off-by: David Sterba <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'man')
1 files changed, 9 insertions, 0 deletions
diff --git a/man/ b/man/
index a2d4a8f3..b94df2e2 100644
--- a/man/
+++ b/man/
@@ -80,6 +80,8 @@ btrfs \- control a btrfs filesystem
\fBbtrfs\fP \fBinspect-internal subvolid-resolve\fP \fI<subvolid>\fP \fI<path>\fP
+\fBbtrfs\fP \fBinspect-internal rootid\fP \fI<path>\fP
\fBbtrfs\fP \fBsend\fP [-v] [-p \fI<parent>\fP] [-c \fI<clone-src>\fP] [-f \fI<outfile>\fP] \fI<subvol>\fP
@@ -577,6 +579,13 @@ not enough to read all the resolved results. The max value one can set is 64k.
Get file system paths for the given subvolume ID.
+\fBinspect-internal rootid\fP \fI<path>\fP
+For a given file or directory, return the containing tree root id. For a
+subvolume return it's own tree id.
+The result is undefined for the so-called empty subvolumes (identified by inode number 2).
\fBsend\fP [-v] [-p \fI<parent>\fP] [-c \fI<clone-src>\fP] [-f \fI<outfile>\fP] \fI<subvol>\fP
Send the subvolume to stdout.
Sends the subvolume specified by \fI<subvol>\fR to stdout.