Fwd: Is there a lightweight copy from one subvolume to another?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---------- Forwarded message ----------
From: Maxdamantus <maxdamantus@xxxxxxxxx>
Date: 25 January 2014 21:49
Subject: Re: Is there a lightweight copy from one subvolume to another?
To: Marc MERLIN <marc@xxxxxxxxxxx>


Due to what I understand is some VFS limitation, you can only
reflink-copy between subvolumes under one Linux mountpoint. If
/mnt/btrfs1 provides access to all subvolumes, you should be able to
copy between them through that path, but you won't be able to copy
them across mounts, even `--bind` ones.

On 25 January 2014 20:04, Marc MERLIN <marc@xxxxxxxxxxx> wrote:
> If I have
> /mnt/btrfs1/subvol1
> /mnt/btrfs1/subvol2
>
> Can I copy/move data from subvol1 to subvol2 without having to physically
> copy all the blocks as if it were an entirely different filesystem?
>
> reflink doesn't work for this:
> gargamel [mc]# cp -av --reflink=always misc/olympic Video/misc/
> `misc/olympic' -> `Video/misc/olympic'
> `misc/olympic/file.avi' -> `Video/misc/olympic/file.avi'
> cp: failed to clone `Video/misc/olympic/file.avi' from `misc/olympic/file.avi': Invalid cross-device link
>
> Was there another way?
>
> Thanks,
> Marc
> --
> "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> Microsoft is to operating systems ....
>                                       .... what McDonalds is to gourmet cooking
> Home page: http://marc.merlins.org/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux