-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clonage is unsetting the received UUID #27
Comments
We have a problem here. btrfs-clone is 7 years old. I've uploaded it here in the hope that it would be useful. I personally haven't used it for years, and I have no time for exhaustive maintenance. As turned out in #19, there have been changes in the kernel and btrfsprogs that affect the functionality of btrfs-clone to the extent that it doesn't work any more for certain setups. Apparently the fact that I merged #21 has caused breakage in your case. That's regrettable, and exactly the reason why I am reluctant to merge changes like this. I don't remember why it was necessary to clear the ro property in the code path you mention. But I am pretty sure that I found it necessary back then, otherwise I wouldn't have invested the effort to write the code that does it. It's well possible that back in 2017 it was necessary (talking about kernel 4.x), while it isn't any more today. Feel free to comment out or remove the |
I understand, thank you for the initial work and the answer. At least, I wanted to highlight the issue to let other people know. As this tool is still part of many answers on how to clone a btrfs disk. It is maybe not perfect but it may still help for some cases. On my side, I wanted to migrate a disk with only btrbk snapshots. I used this tool first as I thought that As a result, I won't change this tool as I will stick with |
The setup:
bk1
with a subvolchains
where a few ro snapshots in it.bk2
emptyExpected: The snapshots in
bk1/chains/*
aresend | receive
so the received UUID must be set for each one.Actual:
Logs
The reason is probably :
btrfs property set -f -ts /tmp/tmpesva_93o/c3bffbc5bc4d/c393996ce277/261/c3bffbc5bc4d ro false
. It is the root cause of #19 and by passing-f
the received UUID is reset.Not sure why a
ro
snapshot must be changed torw
. The only log in between is a move but normally amv
should not be problematic as long as targeting the snapshot root folder.The text was updated successfully, but these errors were encountered: