Re: btrfs receive to subdirectory

2012-10-13 Thread Alex Lyakas
Rory, thanks for confirming. I will put together a more formal patch to the list. Thanks, Alex. On Fri, Oct 12, 2012 at 6:10 PM, Rory Campbell-Lange r...@campbell-lange.net wrote: On 12/10/12, Alex Lyakas (alex.bt...@zadarastorage.com) wrote: Hi Rory, can you pls check if you have a file

Re: btrfs receive to subdirectory

2012-10-12 Thread Alex Lyakas
Hi Rory, can you pls check if you have a file /etc/mtab on your machine? If not or if it's empty or something like, then this probably explains the issue. In this case, pls apply patch2 that is attached (instead of previous patches). Otherwise, pls try with patch1 (instead of previous) and then

Re: btrfs receive to subdirectory

2012-10-12 Thread Rory Campbell-Lange
On 12/10/12, Alex Lyakas (alex.bt...@zadarastorage.com) wrote: Hi Rory, can you pls check if you have a file /etc/mtab on your machine? If not or if it's empty or something like, then this probably explains the issue. In this case, pls apply patch2 that is attached (instead of previous

Re: btrfs receive to subdirectory

2012-10-11 Thread Alex Lyakas
Hi Rory, thanks for letting me know. I am using the latest code from Chris's repo ( git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git), which has been updated recently (latest commit 91d9eec1ff044394f2b98ee7fcb76713dd33b994). Do you think you can try the following patch on top of

Re: btrfs receive to subdirectory

2012-10-11 Thread Rory Campbell-Lange
On 11/10/12, Alex Lyakas (alex.bt...@zadarastorage.com) wrote: I am using the latest code from Chris's repo ( git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git), which has been updated recently (latest commit 91d9eec1ff044394f2b98ee7fcb76713dd33b994). Do you think you can

Re: btrfs receive to subdirectory

2012-10-11 Thread Alex Lyakas
Hi Rory, all your tests work perfectly for me (really, I swear:)), with exact same mount points and subvol/snap/dir names. Just to make that the patch some how did not get messed up in the mail, I attach it. Can you pls post the output of cat /proc/mounts and mount (if you're willing to debug

Re: btrfs receive to subdirectory

2012-10-11 Thread Rory Campbell-Lange
On 11/10/12, Alex Lyakas (alex.bt...@zadarastorage.com) wrote: Hi Rory, all your tests work perfectly for me (really, I swear:)), with exact same mount points and subvol/snap/dir names. Just to make that the patch some how did not get messed up in the mail, I attach it. ... happy to try

Re: btrfs receive to subdirectory

2012-10-10 Thread Rory Campbell-Lange
On 09/10/12, Alex Lyakas (alex.bt...@zadarastorage.com) wrote: Hi Rory, Arne, I think the problem is that currently mnt_fd in struct btrfs_receive is used both as mount root and directory in which the subvolume/snapshot needs to be created. Arne, does the following patch make sense? It uses

Re: btrfs receive to subdirectory

2012-10-09 Thread Rory Campbell-Lange
At snapshot snap_081012_1716 It certainly seems to work if the receive target is a subvolume other than the implicit subvolume at the root of the mount point. So one can only btrfs receive to a subvolume, which makes sense, and is I believe the reason one cannot 'btrfs receive to a subdirectory

Re: btrfs receive to subdirectory

2012-10-09 Thread Alex Lyakas
if the receive target is a subvolume other than the implicit subvolume at the root of the mount point. So one can only btrfs receive to a subvolume, which makes sense, and is I believe the reason one cannot 'btrfs receive to a subdirectory' as set out in the subject of my original email

btrfs receive to subdirectory

2012-10-08 Thread Rory Campbell-Lange
I can send snapshots to volume, but not volume/dir. Please advise if what I am doing is incorrect. Rory Format usb3 disk and mount root@orchard:/bkp# mkfs.btrfs /dev/sdb1 WARNING! - Btrfs v0.20-rc1-37-g91d9eec IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org

Re: btrfs receive to subdirectory

2012-10-08 Thread Arne Jansen
On 10/08/12 18:30, Rory Campbell-Lange wrote: I can send snapshots to volume, but not volume/dir. Please advise if what I am doing is incorrect. Rory Format usb3 disk and mount root@orchard:/bkp# mkfs.btrfs /dev/sdb1 WARNING! - Btrfs v0.20-rc1-37-g91d9eec IS EXPERIMENTAL