Dear Leszek, I agree that it seems inconsistent that "Received UUID" is not cleared, and I'm surprised no one replied to your bug!
Leszek Dubiel <les...@dubiel.pl> writes: > Package: btrfs-progs > Version: 4.20.1-2 > Severity: minor > > > > When one imports subvolume through btrfs send ... | btrfs receive ... > then snapshot gets "Received UUID" from remote system. > > When you "btrfs sub snap -r ...", create readonly snapshot of received > snapshot, then "Received UUID" is copied. > > When you "btrfs sub snap ...", create read-write snapshot, then > "Received UUID" of new snapshot is cleared. That is GOOD. > > But if you "btrfs set prop ... ro false" then "Received UUID" is not > cleared. I think this should be cleared -- in the same style when > you snapshot without "readonly" flag. > > Testing script: > [snip] Thank you for steps to reproduce as well as the script! Do you know if this bug is still present in newer releases? If it's still present with either linux and btrfs-progs 6.x then this issue should immediately be forwarded upstream. If I remember correctly 5.10.x is also still supported, and if it's fixed in 6.x but not in 5.10.x then the fix might need to be backported--to my eyes the regression risk is low. Regards, Nicholas
signature.asc
Description: PGP signature