Skip to contentSkip to conversation

BUG: Replacing a directory with a subvolume breaks incremental snapshots

DISCUSSION Robert White 2 participants 2 messages May 24, 2014 – May 25, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 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

Quoted 3 lines

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.

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