Commit Graph
6 Commits
Author SHA1 Message Date
Sebastian UnterschützandClaude Opus 5.5 907d400765 feat: remove cephmig snapshots during sync and add cleanup command
Users of a subvolume should not see traces of the migration. Each sync
round now deletes the older cephmig-* round snapshots at source and
target and keeps only the newest one as base for the next round. The new
command `cephmig cleanup` deletes the remaining one after the cutover.
Application snapshots are never touched.

The journal marks a snapshot as removed before deleting it, so an
interrupted run finishes the deletion instead of reporting a vanished
snapshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:52:13 +01:00
Sebastian UnterschützandClaude Opus 5.5 a6fda8f8d3 style: add blank lines between declarations and statement blocks
Separate top-level declarations and multi-line statements with blank
lines, keeping an "if err != nil" check next to the statement it
belongs to. Expand semicolon one-liners, group the nativeTransport
fields by purpose, and format the cgo preamble as readable C.
Apart from the expanded one-liners and the C preamble, the change
is whitespace only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:36:19 +01:00
Sebastian UnterschützandClaude Opus 5.5 c2ef7a6c3b docs: add package and doc comments for exported identifiers
Document every exported type, function and method in the migration,
storage and cephfsnative packages and add package comments for
migration and the cephmig command, following the commentary rules of
Effective Go. Comments on unexported helpers now start with the name
they describe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:07:48 +01:00
Sebastian UnterschützandClaude Opus 5.5 7413b9a43a refactor(nativeprobe): return errors instead of panicking
Move the probe logic into run and report failures on stderr with a
non-zero exit status, as recommended by Effective Go. Group standard
library imports separately and add a package doc comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:07:48 +01:00
Sebastian UnterschützandClaude Opus 5.5 8fe60a4f8f refactor!: rename module and move CLI to cmd/cephmig
Use the repository path git.zb-server.de/Sebi/CephfsMig as module
path instead of the non-importable name CephMig, and move the cephmig
entry point from the repository root to cmd/cephmig next to
cmd/nativeprobe. Makefile and Dockerfile.native build the new path.

BREAKING CHANGE: import paths change from CephMig/... to
git.zb-server.de/Sebi/CephfsMig/..., and the binary is now built from
./cmd/cephmig instead of the module root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:06:09 +01:00
Sebastian UnterschützandClaude Opus 5.5 7705ed3eaf chore: import CephMig prototype
Initial import of the existing CephFS subvolume migration prototype,
including the native libcephfs transport, rsync backend, local Ceph
lab environment and integration tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:05:53 +01:00