Re: [RFC PATCH 6/6] Btrfs-progs: add btrfs send/receive commands

2012-07-25 Thread Alex Lyakas
Thanks! So now: A_PATH - path - full_path - newpath A_PATH_LINK - lnk - full_link_path - oldpath while I viewed it the other way around. I guess it's not important what is left/right, old/new :) as long as it's consistent. Alex. On Tue, Jul 24, 2012 at 11:27 PM, Alexander Block

Re: [RFC PATCH 6/6] Btrfs-progs: add btrfs send/receive commands

2012-07-24 Thread Alexander Block
On Thu, Jul 19, 2012 at 3:25 PM, Alex Lyakas alex.bolshoy.bt...@gmail.com wrote: +static int process_link(const char *path, const char *lnk, void *user) +{ + int ret; + struct btrfs_receive *r = user; + char *full_path = path_cat(r-full_subvol_path, path); + + if

Re: [RFC PATCH 6/6] Btrfs-progs: add btrfs send/receive commands

2012-07-19 Thread Alex Lyakas
+static int process_link(const char *path, const char *lnk, void *user) +{ + int ret; + struct btrfs_receive *r = user; + char *full_path = path_cat(r-full_subvol_path, path); + + if (g_verbose = 1) + fprintf(stderr, link %s - %s\n, path, lnk); + + ret =

Re: [RFC PATCH 6/6] Btrfs-progs: add btrfs send/receive commands

2012-07-09 Thread Alex Lyakas
Hi Alexander, I studied all the kernel + user code, and I have a long list of questions. Meanwhile, I want to report two small bugs: # BTRFS_SEND_C_MKNOD command: the receive path expects BTRFS_SEND_A_MODE, but kernel doesn't send it. So currently it errors. It looks like kernel need to send