From 6d26357f8e7d73d802e8025407fe17542a18164b Mon Sep 17 00:00:00 2001 From: Stefan Behrens Date: Tue, 23 Apr 2013 12:18:55 +0200 Subject: Btrfs-progs: add function to map subvol ID to path Several tools like btrfs-send and btrfs-receive need to map a subvolume ID to a filesystem path. The so far existing methods in btrfs-list.c cause a horrible effort when performing this operation (and the effort is dependent on the number of existing subvolumes with quadratic effort). This commit adds a function that is able to map a subvolume ID to a filesystem path with an effort that is independent of the number of existing subvolumes. In addition to this function, a command line frontend is added as well: btrfs inspect-internal subvolid-resolve Signed-off-by: Stefan Behrens --- man/btrfs.8.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'man') diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 8ec5d5a4..af7df4de 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -60,6 +60,8 @@ btrfs \- control a btrfs filesystem \fBbtrfs\fP \fBinspect-internal logical-resolve\fP [-Pv] [-s size] \fI\fP \fI\fP .PP +\fBbtrfs\fP \fBinspect-internal subvolid-resolve\fP \fI\fP \fI\fP +.PP \fBbtrfs\fP \fBqgroup assign\fP \fI\fP \fI\fP \fI\fP .PP \fBbtrfs\fP \fBqgroup remove\fP \fI\fP \fI\fP \fI\fP @@ -461,6 +463,10 @@ not enough to read all the resolved results. The max value one can set is 64k. .RE .TP +\fBinspect-internal subvolid-resolve\fP \fI\fP \fI\fP +Get file system paths for the given subvolume ID. +.TP + \fBbtrfs qgroup assign\fP \fI\fP \fI\fP \fI\fP Enable subvolume qgroup support for a filesystem. .TP -- cgit v1.2.3