feat: release the target claim in cleanup
cleanup now deletes the claim file under .cephmig/claims as its last step, if it holds the job's own ID, and removes the claim directories when they are empty. A cleaned-up job is finished: cleanup and finalize do nothing and do not claim the target again, and sync is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5f29328932
commit
a6e7bbb17e
10 files changed
+218
-14
No files matched your search
@@ -76,7 +76,7 @@ cephmig status --state FILE
|
||||
| `inspect` | checks source and target without changing anything |
|
||||
| `sync` | transfers the current state; can be repeated any number of times |
|
||||
| `finalize` | last round after the write stop, then ready for cutover |
|
||||
| `cleanup` | deletes the snapshots cephmig created, at source and target |
|
||||
| `cleanup` | deletes the snapshots cephmig created and its claim on the target |
|
||||
| `status` | prints the journal |
|
||||
|
||||
All results are written to standard output as JSON. The state file must be
|
||||
|
||||
Reference in new issue
Block a user