feat(native): skip unchanged subtrees in intermediate sync rounds

Intermediate cephmig round snapshots skip a subdirectory whose inode,
inode version and ceph.dir.rctime equal those in the base snapshot. The
index carries the subtree's entries over from the base and marks them
carried; carried entries never serve as base for a block delta.
Snapdiff, copy, pruning and verification leave skipped subtrees out.

Application snapshots and finalize always scan everything, so a change
missed because of delayed rctime propagation or a lagging client clock
costs extra work but cannot reach the final state. The config option
full_scan disables the shortcut; the journal reports skipped_subtrees.

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 20:19:31 +01:00
1 parent b7d2a0687e
commit 83e15bccb2
9 files changed
+394 -12

No files matched your search

+4
View File
@@ -31,6 +31,10 @@ type Config struct {
Source Endpoint `json:"source"`
Target Endpoint `json:"target"`
BandwidthKiB int64 `json:"bandwidth_kib,omitempty"`
// FullScan disables the rctime shortcut of the native backend, so every
// round reads all metadata. finalize always does.
FullScan bool `json:"full_scan,omitempty"`
}
// ReadConfig reads exactly one JSON object from the regular file at path,