BUG: Replacing a directory with a subvolume breaks incremental snapshots
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
Quoted 16 lines · Robert White
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 scratchscratch_BEFORErmdir scratch/example
btrfs subvol create scratch/example
btrfs subvol snap -r scratchscratch_AFTERbtrfs send -pscratch_BEFOREscratch_AFTER>/dev/null
Quoted 3 lines
The output produced:
At subvolscratch_AFTER
ERROR: send ioctl failed with -2: No such file or directory
Fixed here: https://patchwork.kernel.org/patch/4238131/
Thanks Robert.
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 5 lines
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."