Commit Graph
9 Commits
Author SHA1 Message Date
Sebastian UnterschützandClaude Opus 5.5 330a3ec12c feat!: remove the rsync backend
The native libcephfs backend is the only transfer path. The rsync
transport, the mounted-filesystem access and its helpers (mount check,
path resolution below a mount, mount claim, quota and hardlink repair
through the mount) are removed, together with the rsync lab test and
the client image that only added rsync.

The claim and release tests now exercise the native claim through a
local test file system with real flock locks.

BREAKING CHANGE: "backend": "rsync" and the endpoint field "mount" are
rejected. "backend" is optional and only accepts "native"; jobs created
with "native" resume without it. Journals of rsync jobs cannot be
resumed. Builds without the build tag ceph only support doctor and
status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:03:22 +01:00
Sebastian UnterschützandClaude Opus 5.5 a6e7bbb17e 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>
2026-12-03 20:37:20 +01:00
Sebastian UnterschützandClaude Opus 5.5 5f29328932 docs: add concept for full content verification after cutover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:29:10 +01:00
Sebastian UnterschützandClaude Opus 5.5 831f44dbe5 docs: describe subtree skipping and add sequence diagrams
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:19:31 +01:00
Sebastian UnterschützandClaude Opus 5.5 b7d2a0687e docs: translate README and documentation to English
Also document the snapshot cleanup: older round snapshots are removed
during sync, and `cephmig cleanup` removes the rest after the cutover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:55:45 +01:00
Sebastian UnterschützandClaude Opus 5.5 cc2dff46a0 feat(native): preserve ctime of files, directories and symlinks
The MDS takes an inode's ctime from the time stamp the client sends with
each request. The native backend overrides clock_gettime per thread and
per libcephfs call: modifying calls run at 1970-01-01T00:00:01Z, and the
last change to each entry creates and removes the xattr
user.cephmig.ctime stamped with the source ctime. Link, unlink, rename
and xattr requests set ctime = max(stamp, mtime), also backwards.

- write xattrs and quotas before SetAttr, which must come last
- always restamp directories after their children and hardlinks after
  linking or pruning, since the writer's cache may be stale
- verify through a separate, freshly mounted target client
- name the differing attributes in metadata mismatch errors
- compare ctime of every entry, the root included, in the lab fixture

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:33:19 +01:00
Sebastian UnterschützandClaude Opus 5.5 02ebc08c88 feat(native): preserve access and birth time of every entry
Read atime and btime with statx and set them together with owner,
mode and mtime. Verification compares both, so a published snapshot
must match the source in all three times. The integration fixture
compares the times through libcephfs, since ceph-fuse does not expose
the birth time.

The ctime cannot be preserved: Ceph 21.2.0 accepts CEPH_SETATTR_CTIME
but stores the time of the call. The rsync backend still preserves
only the mtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:48:25 +01:00
Sebastian UnterschützandClaude Opus 5.5 0fce76b7e3 docs(readme): restructure README following reproducibility guidelines
Reorganize the README into title and description, installation, usage,
examples, project structure, documentation, contributing, license and
contact, as recommended by the Utrecht University computational
reproducibility workshop. Commands are copy-paste ready and the example
configuration is the real lab file. The detailed lab description moves
to docs/lab.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:08:59 +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