[Btrfs-devel] Oops

Yan Zheng yanzheng at 21cn.com
Fri Dec 7 18:50:38 PST 2007


2007/12/8, Christian Hesse <list at eworm.de>:
>
> 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



More information about the Btrfs-devel mailing list