linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Possible bug in send/receive with simple reproducer
@ 2013-08-11 18:53 Emil Karlson
  2013-08-11 19:08 ` Emil Karlson
  2013-08-12 14:59 ` Josef Bacik
  0 siblings, 2 replies; 5+ messages in thread
From: Emil Karlson @ 2013-08-11 18:53 UTC (permalink / raw)
  To: Linux Btrfs

Greetings

Send fails for me unexpectedly:

I get:
ERROR: rename o262-5-0 -> snapshots failed. No such file or directory

reproducer ( http://users.tkk.fi/~jkarlson/files/test4.txt  ):

for i in 1 2; do
  mkdir /mnt/$i
  truncate -s 4G /mnt/$i.img
  mkfs.btrfs /mnt/$i.img
  mount -o loop /mnt/$i.img /mnt/$i
done

mkdir /mnt/1/testdir
mkdir /mnt/1/testdir/1/
mkdir /mnt/1/testdir/2/
dd if=/dev/urandom  of=/mnt/1/testdir/aa count=16
dd if=/dev/urandom  of=/mnt/1/testdir/bb count=16

mkdir /mnt/1/snapshots
btrfs sub snap -r /mnt/1/ /mnt/1/snapshots/backup2
btrfs sub snap -r /mnt/1/ /mnt/1/snapshots/backup3
btrfs send /mnt/1/snapshots/backup3/ | btrfs receive /mnt/2/

umount /mnt/{1,2}; rm /mnt/{1,2}.img; rmdir /mnt/{1,2}

Best Regards
-Emil

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-12 18:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-11 18:53 Possible bug in send/receive with simple reproducer Emil Karlson
2013-08-11 19:08 ` Emil Karlson
2013-08-12 14:59 ` Josef Bacik
2013-08-12 15:16   ` Stefan Behrens
2013-08-12 18:12     ` Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).