2007/12/8, Christian Hesse <[EMAIL PROTECTED]>:
>
> Ok, as far as I can remember:
>
> $ mount -o loop /usr/portage.img /usr/portage/
> [ sync data to the fs, run emerge, update meta database, etc. ]
> $ mount -o loop,subvol=. /usr/portage.img /mnt/tmp/
> $ btrfsctl -s 2007-12-07 /mnt/tmp
> [ remember that I just created a new subvol, not a snapshot ]
> $ btrfsctl -s 2007-12-07-0 /mnt/tmp/default
> $ umount /mnt/tmp
> [ suspend and resume the system ]
> $ emerge sync
>
It's seem you setup two difference loopback devices on the same image
file. Please try mount the image file this way.

losetup /dev/loop0  /usr/portage.img
mount /dev/loop0 /usr/portage/
mount -o subvol=. /dev/loop0 /mnt/tmp/

Regards
YZ

_______________________________________________
Btrfs-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/btrfs-devel

Reply via email to