Re: [PATCH] Btrfs-progs: add function to map subvol ID to path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 23, 2013 at 12:18:55PM +0200, Stefan Behrens wrote:
> 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 <subvolid> <path>

Nice. The 'inspect' section is imo right for such simple lookup.

We could possibly extend it to print the path relative to the current
default or currently mounted subvol, or teach 'subvol show' to accept
subvol ids as well.

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux