diff options
author | David Sterba <dsterba@suse.cz> | 2013-09-18 18:19:30 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:23:11 -0400 |
commit | 7fbcc39c3075b88718bcb3e8e6f3ff599a4e9f86 (patch) | |
tree | 50c7072f9a53f9270b0077206ad38ec5be14a2f4 /man | |
parent | 8e937074a4ecc1a70f4a10cfff94e60a916ce82f (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 <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/btrfs.8.in | 9 |
1 files changed, 9 insertions, 0 deletions
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<subvolid>\fP \fI<path>\fP .PP +\fBbtrfs\fP \fBinspect-internal rootid\fP \fI<path>\fP +.PP .PP \fBbtrfs\fP \fBsend\fP [-v] [-p \fI<parent>\fP] [-c \fI<clone-src>\fP] [-f \fI<outfile>\fP] \fI<subvol>\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<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). +.TP + \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. |