* BUG: Replacing a directory with a subvolume breaks incremental snapshots
@ 2014-05-24 2:24 Robert White
2014-05-25 2:01 ` Filipe David Manana
0 siblings, 1 reply; 2+ messages in thread
From: Robert White @ 2014-05-24 2:24 UTC (permalink / raw)
To: linux-btrfs
Howdy,
If you remove an existing directory and then create a subvolume with the
same name the incremental send (btrfs send -p) will die with errno==2
(file not found).
Steps to Reproduce:
btrfs subvol create scratch # make a playground
mkdir scratch/example
btrfs subvol snap -r scratch scratch_BEFORE
rmdir scratch/example
btrfs subvol create scratch/example
btrfs subvol snap -r scratch scratch_AFTER
btrfs send -p scratch_BEFORE scratch_AFTER >/dev/null
The output produced:
At subvol scratch_AFTER
ERROR: send ioctl failed with -2: No such file or directory
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG: Replacing a directory with a subvolume breaks incremental snapshots
2014-05-24 2:24 BUG: Replacing a directory with a subvolume breaks incremental snapshots Robert White
@ 2014-05-25 2:01 ` Filipe David Manana
0 siblings, 0 replies; 2+ messages in thread
From: Filipe David Manana @ 2014-05-25 2:01 UTC (permalink / raw)
To: Robert White; +Cc: linux-btrfs
On Sat, May 24, 2014 at 3:24 AM, Robert White <rwhite@pobox.com> wrote:
> Howdy,
>
> If you remove an existing directory and then create a subvolume with the
> same name the incremental send (btrfs send -p) will die with errno==2 (file
> not found).
>
> Steps to Reproduce:
>
> btrfs subvol create scratch # make a playground
> mkdir scratch/example
> btrfs subvol snap -r scratch scratch_BEFORE
> rmdir scratch/example
> btrfs subvol create scratch/example
> btrfs subvol snap -r scratch scratch_AFTER
> btrfs send -p scratch_BEFORE scratch_AFTER >/dev/null
>
> The output produced:
> At subvol scratch_AFTER
> ERROR: send ioctl failed with -2: No such file or directory
Fixed here: https://patchwork.kernel.org/patch/4238131/
Thanks Robert.
>
> --
> 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:[~2014-05-25 2:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-24 2:24 BUG: Replacing a directory with a subvolume breaks incremental snapshots Robert White
2014-05-25 2:01 ` Filipe David Manana
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).