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>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 18:48:25 +01:00
1 parent a6fda8f8d3
commit 02ebc08c88
7 files changed
+137 -19

No files matched your search

+8 -6
View File
@@ -1,8 +1,8 @@
# CephMig: CephFS-Subvolumes zwischen Ceph-Clustern migrieren
Ein Go-Werkzeug, das ein CephFS-Subvolume samt Snapshots, POSIX-ACLs, xattrs
und Quotas von einem Ceph-Cluster in einen anderen kopiert, während die
Anwendung weiterläuft.
Ein Go-Werkzeug, das ein CephFS-Subvolume samt Snapshots, POSIX-ACLs, xattrs,
Quotas und Zeitstempeln von einem Ceph-Cluster in einen anderen kopiert,
während die Anwendung weiterläuft.
## Beschreibung
@@ -27,9 +27,11 @@ Es gibt zwei Backends:
**Status:** Prototyp. Die Funktionen sind im lokalen Labor geprüft.
Lastnachweise für die Zielgröße und die produktive Umschaltung fehlen noch.
> **Dokumentierte Abweichung:** Native Snapshot-IDs und Ceph-Geburtszeitpunkte
> werden am Ziel neu vergeben. Die ursprünglichen Erstellungszeiten stehen im
> Journal. Details: [docs/migration.md](docs/migration.md).
> **Dokumentierte Abweichungen:** Native Snapshot-IDs und Snapshot-Erstellungszeiten
> werden am Ziel neu vergeben, ebenso die ctime jeder Datei. mtime, atime und
> Erstellungszeit (btime) der Dateien übernimmt das native Backend von der
> Quelle. Die ursprünglichen Snapshot-Erstellungszeiten stehen im Journal.
> Details: [docs/migration.md](docs/migration.md).
## Installation