Re: Determining subvolumes
From: Hugo Mills <hidden>
Date: 2012-12-26 13:55:15
Attachments
- signature.asc [application/pgp-signature] 828 bytes
From: Hugo Mills <hidden>
Date: 2012-12-26 13:55:15
On Wed, Dec 26, 2012 at 08:38:54AM -0500, Gene Czarcinski wrote:
I know that I can find out what btrfs "volumes" are on a system with
the command:
btrfs fi show
I can also check if a partition of disk is a btrfs volume with the command:
blkid -o value -s TYPE /dev/<disk|partition>
And, if I mount that btrfs volume with something like:
mount -t btrfs /dev/<btrfs> /mnt/btrfs
The, I can get a list of btrfs subvolumes on that volume with the command:
btrfs subvolume list /mnt/btrfs
My question: Is there a way of finding out what subvolumes are
defined on a btrfs volume without mounting the volume?No. (Well, in theory the code is possible, but there's nothing I'm aware of that will do it) Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Python is executable pseudocode; perl --- is executable line-noise.