linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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

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).