* Btrfs Send/Receive "no such file or directory" bug
@ 2015-03-02 12:22 Robbie Ko
2015-03-02 16:03 ` Filipe David Manana
0 siblings, 1 reply; 2+ messages in thread
From: Robbie Ko @ 2015-03-02 12:22 UTC (permalink / raw)
To: linux-btrfs
Hi,
I have been testing btrfs send/receive recently.
I got an error "rename failed: no such file or directory" on receive side.
The followings are simple reproduced steps and related information,
Is there any idea about what this might be or how to fix it?
uanme -a
Linux ubuntu 4.0.0-rc1-custom #2 SMP Fri Feb 27 22:20:12 CST 2015
x86_64 x86_64 x86_64 GNU/Linux
btrfs --version
Btrfs v3.14.1
Steps to reproduce:
$ mkfs.btrfs -f /dev/sdb
$ mount /dev/sdb /mnt
$ mkdir -p /mnt/data/n1/n2/p1/p2
$ mkdir /mnt/data/n4
$ mkdir -p /mnt/data/p1/p2
$ btrfs subvolume snapshot -r /mnt /mnt/snap1
$ mv /mnt/data/p1/p2 /mnt/data
$ mv /mnt/data/n1/n2/p1/p2 /mnt/data/p1
$ mv /mnt/data/p2 /mnt/data/n1/n2/p1
$ mv /mnt/data/n1/n2 /mnt/data/p1
$ mv /mnt/data/p1 /mnt/data/n4
$ mv /mnt/data/n4/p1/n2/p1 /mnt/data
$ btrfs subvolume snapshot -r /mnt /mnt/snap2
$ btrfs send /mnt/snap1 -f /tmp/1.send
$ btrfs send -p /mnt/snap1 /mnt/snap2 -f /tmp/2.send
$ mkfs.btrfs -f /dev/sdc
$ mount /dev/sdc /mnt2
$ btrfs receive /mnt2 -f /tmp/1.send
$ btrfs receive /mnt2 -f /tmp/2.send
ERROR: rename data/p1/p2 -> data/n4/p1/p2 failed. no such file or directory
Thanks.
Robbie Ko
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Btrfs Send/Receive "no such file or directory" bug
2015-03-02 12:22 Btrfs Send/Receive "no such file or directory" bug Robbie Ko
@ 2015-03-02 16:03 ` Filipe David Manana
0 siblings, 0 replies; 2+ messages in thread
From: Filipe David Manana @ 2015-03-02 16:03 UTC (permalink / raw)
To: Robbie Ko; +Cc: linux-btrfs
On Mon, Mar 2, 2015 at 12:22 PM, Robbie Ko <robbieko@synology.com> wrote:
> Hi,
>
> I have been testing btrfs send/receive recently.
> I got an error "rename failed: no such file or directory" on receive side.
> The followings are simple reproduced steps and related information,
> Is there any idea about what this might be or how to fix it?
>
> uanme -a
> Linux ubuntu 4.0.0-rc1-custom #2 SMP Fri Feb 27 22:20:12 CST 2015
> x86_64 x86_64 x86_64 GNU/Linux
> btrfs --version
> Btrfs v3.14.1
>
> Steps to reproduce:
>
> $ mkfs.btrfs -f /dev/sdb
> $ mount /dev/sdb /mnt
>
> $ mkdir -p /mnt/data/n1/n2/p1/p2
> $ mkdir /mnt/data/n4
> $ mkdir -p /mnt/data/p1/p2
>
> $ btrfs subvolume snapshot -r /mnt /mnt/snap1
>
> $ mv /mnt/data/p1/p2 /mnt/data
> $ mv /mnt/data/n1/n2/p1/p2 /mnt/data/p1
> $ mv /mnt/data/p2 /mnt/data/n1/n2/p1
> $ mv /mnt/data/n1/n2 /mnt/data/p1
> $ mv /mnt/data/p1 /mnt/data/n4
> $ mv /mnt/data/n4/p1/n2/p1 /mnt/data
>
> $ btrfs subvolume snapshot -r /mnt /mnt/snap2
>
> $ btrfs send /mnt/snap1 -f /tmp/1.send
> $ btrfs send -p /mnt/snap1 /mnt/snap2 -f /tmp/2.send
>
> $ mkfs.btrfs -f /dev/sdc
> $ mount /dev/sdc /mnt2
> $ btrfs receive /mnt2 -f /tmp/1.send
> $ btrfs receive /mnt2 -f /tmp/2.send
> ERROR: rename data/p1/p2 -> data/n4/p1/p2 failed. no such file or directory
Thanks for reporting this with an example.
I'll take a look at it.
>
> Thanks.
>
> Robbie Ko
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Filipe David Manana,
"Reasonable men adapt themselves to the world.
Unreasonable men adapt the world to themselves.
That's why all progress depends on unreasonable men."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-02 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 12:22 Btrfs Send/Receive "no such file or directory" bug Robbie Ko
2015-03-02 16:03 ` Filipe David Manana
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.