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>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 22:03:22 +01:00
1 parent f0ea1fd7cd
commit 330a3ec12c
31 files changed
+263 -1522

No files matched your search

+1 -7
View File
@@ -72,7 +72,7 @@ func run(ctx context.Context, args []string, out, log io.Writer) error {
flags := flag.NewFlagSet(args[0], flag.ContinueOnError)
flags.SetOutput(log)
configPath := flags.String("config", "", "JSON migration configuration")
statePath := flags.String("state", "", "persistent local state file (outside CephFS mounts)")
statePath := flags.String("state", "", "persistent state file on local disk")
stopped := flags.Bool("writers-stopped", false, "confirm ALL source writers are stopped; keep them stopped until cutover completes")
if err := flags.Parse(args[1:]); err != nil {
if errors.Is(err, flag.ErrHelp) {
@@ -121,12 +121,6 @@ func run(ctx context.Context, args []string, out, log io.Writer) error {
return errors.New("--writers-stopped is only valid with finalize")
}
if c.Backend != "native" && args[0] != "inspect" && args[0] != "cleanup" {
if _, err = exec.LookPath("rsync"); err != nil {
return fmt.Errorf("rsync is required: %w", err)
}
}
engine, closeEngine, err := migration.NewEngine(ctx, c, process, log)
if err != nil {
return err