[Btrfs-devel] Oops
Christian Hesse
list at eworm.de
Fri Dec 7 23:36:35 PST 2007
On Saturday 08 December 2007, Yan Zheng wrote:
> 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/
Yes, probably you are right. I will try again.
--
Regards,
Chris
More information about the Btrfs-devel
mailing list