Skip to contentSkip to conversation

feature/enhancement, btrfs check --repair combined with seed-sprout device

DISCUSSION Chris Murphy 1 participant 1 message Oct 12 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

Given the state changes that --repair inevitably causes (overwrites), I'm wondering if we could optionally leverage btrfs seed-sprout feature to force COW, even when using --repair? If repair succeeds the seed+sprout can then be mounted to test it. If it fails, throw away the sprout.

A further enhancement could be to make this feature automatically use a zram device as the sprout - redirect the repairs to volatile memory.

--
Chris Murphy