-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support snapshot revert operation #3623
base: master
Are you sure you want to change the base?
Commits on Sep 11, 2024
-
Increase devicemapper dependency lower bound to 0.34.4
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a1427ea - Browse repository at this point
Copy the full SHA a1427eaView commit details -
Add optional merge field to FilesystemSave metadata
Add MergeRequested property to filesystem D-Bus interface. Use it to set and unset the filesystem metadata field. Change destroy_filesystems to take into account the merge status of a filesystem. Move all the destroy functionality into thinpool implementation. Do more checks to avoid deleting filesystems that shouldn't be deleted. Check for situations where multiple snapshots are referring to the same deleted filesystem. Check for invalid scheduling requests when requesting or canceling a merge request. Add some tests.
Configuration menu - View commit details
-
Copy full SHA for 95e1c40 - Browse repository at this point
Copy the full SHA 95e1c40View commit details -
Read the filesystem metadata before any setup
Verify that scheduled merges are permissible. Return with an error without setting up any filesystems if duplicate UUIDs or names are found. Perform the merges before setting up any filesystems. If a merge can be rolled back, set up the two filesystems in the merge relation in the normal way. Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 165ef8e - Browse repository at this point
Copy the full SHA 165ef8eView commit details -
Also set reverted filesystem UUID
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e0cb6d - Browse repository at this point
Copy the full SHA 1e0cb6dView commit details -
On revert, use origin's created value
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01f3169 - Browse repository at this point
Copy the full SHA 01f3169View commit details -
Clean up origin links after revert
If a snapshot was taken after the one reverted to, remove its origin field. If a snapshot was reverted, any snapshot that points at it should have its origin field removed. Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6331a0a - Browse repository at this point
Copy the full SHA 6331a0aView commit details -
Run a python-based test to revert a filesystem
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c30bda3 - Browse repository at this point
Copy the full SHA c30bda3View commit details -
Do not remove origin field of later snapshots
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 67d67c6 - Browse repository at this point
Copy the full SHA 67d67c6View commit details -
Set a snapshot of the reverted snapshot to the origin
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5613ad9 - Browse repository at this point
Copy the full SHA 5613ad9View commit details -
Retain origin when reverting a snap into another
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 09d8346 - Browse repository at this point
Copy the full SHA 09d8346View commit details -
Generalize unset_origin to set_origin
Semantics preserving, so pass None where it is invoked. Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0aa3096 - Browse repository at this point
Copy the full SHA 0aa3096View commit details -
Pass value to D-Bus methods for origin changes
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa6be1e - Browse repository at this point
Copy the full SHA aa6be1eView commit details -
Patch up origin fields if deleted filesystem was an origin
Make this change visible on the D-Bus. Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bf1eea3 - Browse repository at this point
Copy the full SHA bf1eea3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dca91a6 - Browse repository at this point
Copy the full SHA dca91a6View commit details -
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4240fb3 - Browse repository at this point
Copy the full SHA 4240fb3View commit details -
Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1c1ab5 - Browse repository at this point
Copy the full SHA b1c1ab5View commit details -
Define a merge operation for FilesystemSave
To avoid a mutable snap and miscellaneous setting and unsetting in the setup method. Signed-off-by: mulhern <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43fb5c5 - Browse repository at this point
Copy the full SHA 43fb5c5View commit details