From 7fbcc39c3075b88718bcb3e8e6f3ff599a4e9f86 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 18 Sep 2013 18:19:30 +0200 Subject: 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 Signed-off-by: David Sterba Signed-off-by: Chris Mason --- man/btrfs.8.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'man') diff --git a/man/btrfs.8.in b/man/btrfs.8.in index a2d4a8f3..b94df2e2 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -80,6 +80,8 @@ btrfs \- control a btrfs filesystem .PP \fBbtrfs\fP \fBinspect-internal subvolid-resolve\fP \fI\fP \fI\fP .PP +\fBbtrfs\fP \fBinspect-internal rootid\fP \fI\fP +.PP .PP \fBbtrfs\fP \fBsend\fP [-v] [-p \fI\fP] [-c \fI\fP] [-f \fI\fP] \fI\fP .PP @@ -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. .TP +\fBinspect-internal rootid\fP \fI\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). +.TP + \fBsend\fP [-v] [-p \fI\fP] [-c \fI\fP] [-f \fI\fP] \fI\fP Send the subvolume to stdout. Sends the subvolume specified by \fI\fR to stdout. -- cgit v1.2.3