linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <jbacik@fusionio.com>
To: Emil Karlson <jekarlson@gmail.com>
Cc: Linux Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Possible bug in send/receive with simple reproducer
Date: Mon, 12 Aug 2013 10:59:52 -0400	[thread overview]
Message-ID: <20130812145952.GC2150@localhost.localdomain> (raw)
In-Reply-To: <CAELSAVaZNofc+g8jgvbkiL7dmzv9jiFtYtNxDR1+UkLZyaCMmg@mail.gmail.com>

On Sun, Aug 11, 2013 at 09:53:01PM +0300, Emil Karlson wrote:
> 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}

This was perfect, thank you for that.  I've posted a fix and I'll turn this into
an xfstest to make sure we don't ever regress.  Thanks again,

Josef

  parent reply	other threads:[~2013-08-12 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2013-08-12 15:16   ` Stefan Behrens
2013-08-12 18:12     ` Josef Bacik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130812145952.GC2150@localhost.localdomain \
    --to=jbacik@fusionio.com \
    --cc=jekarlson@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).