All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Priebe <s.priebe@profihost.ag>
To: miaox@cn.fujitsu.com
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
	Josef Bacik <jbacik@fusionio.com>
Subject: Re: problems with btrfs send / restore
Date: Mon, 15 Oct 2012 21:21:29 +0200	[thread overview]
Message-ID: <507C6239.1030208@profihost.ag> (raw)
In-Reply-To: <507BE264.1060500@cn.fujitsu.com>

Am 15.10.2012 12:16, schrieb Miao Xie:
> On 	thu, 11 Oct 2012 21:54:48 +0200, Stefan Priebe wrote:
>> Am 11.10.2012 21:43, schrieb David Sterba:
>>> On Thu, Oct 11, 2012 at 09:33:54PM +0200, Stefan Priebe wrote:
>>>> [server: /btrfs/target]# btrfs send -i /btrfs/src/\@snapshot/1
>>>> /btrfs/src/\@snapshot/2 | btrfs receive /btrfs/target/\@snapshot/
>>>> At subvol /btrfs/src/@snapshot/2
>>>> At subvol 2
>>>> ERROR: failed to open /btrfs/target/@snapshot/@snapshot/1/test.tar. No such file or directory
>>>                                         ^^^^^^^^^^^^^^^^^^^
>>>
>>> I wonder if this is the ghost snapshot dir entry that Miao fixed. Did
>>> somehow get into the 'send' stream and confused the receive side.
>>>
>>> david
>>
>> i missed two facts:
>> 1.) vanilla kernel 3.6.1
>> 2.) latest btrfs tools git (cloned at 10/10/2012)
>
> Sorry, I can not reproduce this problem, could you send me the detailed steps?

mhm there is nothing special. But i try to provide more information / a 
small howto:

# mount |grep btrfs
/dev/sdb on /btrfs/src type btrfs (rw)
/dev/sdc on /btrfs/target type btrfs (rw)

# btrfs subvolume list /btrfs/target/
# btrfs subvolume list /btrfs/src/
ID 277 top level 5 path @snapshot/1
ID 278 top level 5 path @snapshot/2
ID 288 top level 5 path @snapshot/3

# btrfs send /btrfs/src/\@snapshot/1 | btrfs receive 
/btrfs/target/\@snapshot/
At subvol /btrfs/src/@snapshot/1
At subvol 1
#

Now i was trying to send an incremental snapshot:
# btrfs send -i /btrfs/src/\@snapshot/1 /btrfs/src/\@snapshot/2 | btrfs 
receive /btrfs/target/\@snapshot/
At subvol /btrfs/src/@snapshot/2
At subvol 2
ERROR: failed to open /btrfs/target/@snapshot/@snapshot/1/test.tar. No 
such file or directory
#

Greets,
Stefan

  reply	other threads:[~2012-10-15 19:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 19:33 problems with btrfs send / restore Stefan Priebe
2012-10-11 19:43 ` David Sterba
2012-10-11 19:54   ` Stefan Priebe
2012-10-15 10:16     ` Miao Xie
2012-10-15 19:21       ` Stefan Priebe [this message]
2012-10-15 19:42         ` Alex Lyakas
2012-10-15 20:06           ` Stefan Priebe
2012-10-15 20:14             ` Alex Lyakas
2012-10-16 14:16               ` Stefan Priebe - Profihost AG

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=507C6239.1030208@profihost.ag \
    --to=s.priebe@profihost.ag \
    --cc=jbacik@fusionio.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=miaox@cn.fujitsu.com \
    /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 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.