Files
CephfsMig/Makefile
T
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

42 lines
1.8 KiB
Makefile

.PHONY: build check doctor dev-config dev-up dev-down dev-status dev-smoke dev-shell dev-restart-check dev-native-build dev-native-test dev-smallfiles-test dev-million-start dev-million-status dev-million-finish
build:
go build -buildvcs=false -o bin/cephmig ./cmd/cephmig
check:
go vet ./...
go test ./...
bash -n dev/cluster.sh dev/client.sh dev/smoke.sh dev/restart-check.sh dev/native-test.sh dev/smallfiles-test.sh dev/million-start.sh dev/million-finish.sh
python3 -c 'import ast,pathlib; [ast.parse(pathlib.Path(p).read_text()) for p in ("dev/native-fixture.py", "dev/smallfiles.py", "dev/million.py")]'
doctor:
go run ./cmd/cephmig doctor
dev-config:
docker compose -f dev/compose.yaml config --quiet
dev-up:
docker compose -f dev/compose.yaml up -d --wait --wait-timeout 300
dev-down:
docker compose -f dev/compose.yaml down
dev-status:
docker compose -f dev/compose.yaml ps
docker compose -f dev/compose.yaml exec source ceph -s
docker compose -f dev/compose.yaml exec target ceph -s
dev-smoke:
docker compose -f dev/compose.yaml exec client timeout --kill-after=10s 90s bash /lab/smoke.sh
dev-shell:
docker compose -f dev/compose.yaml exec client bash
dev-restart-check:
bash dev/restart-check.sh
dev-native-build:
docker compose -f dev/compose.yaml build native
dev-native-test: dev-native-build
docker compose -f dev/compose.yaml up -d --wait --wait-timeout 300 native
bash dev/native-test.sh
dev-smallfiles-test: dev-native-build
docker compose -f dev/compose.yaml up -d --wait --wait-timeout 300 client native
bash dev/smallfiles-test.sh
dev-million-start: dev-native-build
bash dev/million-start.sh
dev-million-status:
docker compose -p cephmig-million -f dev/compose.yaml -f dev/compose.million.yaml ps -a
python3 -m json.tool .dev/million/main/status.json
dev-million-finish:
bash dev/million-finish.sh