Re: [Libguestfs] missing btrfs subvol support

Olaf Hering
Fri, 10 Oct 2014 13:07:51 -0000

On Fri, Oct 10, Richard W.M. Jones wrote:

> My guess is that the last one (opt/value) will be different for you.

Thanks for the pointers. I will poke around. At least augtool on the
host seems to behave correctly:

olaf@bax:~ $ cd /dev/shm/$$
bash: cd: /dev/shm/3570: Datei oder Verzeichnis nicht gefunden
olaf@bax:~ $ mkdir $_
olaf@bax:~ $ cd $_
olaf@bax:/dev/shm/3570 $ mkdir etc
olaf@bax:/dev/shm/3570 $ cat > etc/fstab
UUID=d538a81f-9778-424d-96cc-e48dd2d4a323 swap                 swap defaults
0 0
UUID=65b72f12-eccb-4cf2-a4f4-9c4bb462456f /                    btrfs defaults
0 0
UUID=65b72f12-eccb-4cf2-a4f4-9c4bb462456f /var/spool           btrfs
subvol=@/var/spool    0 0
olaf@bax:/dev/shm/3570 $ augtool -r $PWD
augtool> ls /files/etc/fstab/3/vfstype
augtool> get /files/etc/fstab/3/vfstype
/files/etc/fstab/3/vfstype = btrfs
augtool> get /files/etc/fstab/3/opt/value
/files/etc/fstab/3/opt/value = @/var/spool
augtool>

I will poke around to see what I find.

Olaf