Re: [PATCH] Btrfs: send, fix incorrect ref access when using extrefs

2014-05-14 Thread Liu Bo
On Tue, May 13, 2014 at 10:01:02PM +0100, Filipe David Borba Manana wrote: When running send, if an inode only has extended reference items associated to it and no regular references, send.c:get_first_ref() was incorrectly assuming the reference it found was of type BTRFS_INODE_REF_KEY due to

[PATCH] Btrfs: send, fix incorrect ref access when using extrefs

2014-05-13 Thread Filipe David Borba Manana
When running send, if an inode only has extended reference items associated to it and no regular references, send.c:get_first_ref() was incorrectly assuming the reference it found was of type BTRFS_INODE_REF_KEY due to use of the wrong key variable. This caused weird behaviour when using the found