[Libguestfs] missing btrfs subvol support
Olaf Hering
olaf at aepfle.de
Mon Oct 13 15:03:53 UTC 2014
On Fri, Oct 10, Richard W.M. Jones wrote:
> We use Augeas to parse the /etc/fstab btrfs entries, see
> src/inspect-fs-unix.c: check_fstab:
>
> https://github.com/libguestfs/libguestfs/blob/master/src/inspect-fs-unix.c#L1089
>
> And we then pass the subvol back to the mount command in
> daemon/mount.c (which doesn't alter it).
>
> https://github.com/libguestfs/libguestfs/blob/master/daemon/mount.c#L154
Something between add_fstab_entry and the actual mount call removes the
'@/'. My debug() shows:
add_fstab_entry(1048): fstab: mountable=btrfsvol:/dev/sda2/@/var/spool mountpoint=/var/spool
libguestfs: check_for_filesystem_on: btrfsvol:/dev/sda2/var/spool (btrfs)
So 'fs->fstab[].mountable' gets tweaked somewhere.
Olaf
More information about the Libguestfs
mailing list