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:
1 parent
a6fda8f8d3
commit
02ebc08c88
7 files changed
+137
-19
No files matched your search
+16
-1
@@ -91,7 +91,22 @@ Rückmigration nach Schreibzugriffen am Ziel sind nicht automatisiert.
|
||||
## Übertragene Daten
|
||||
|
||||
- Snapshotnamen und Inhalte; bestehende Snapshots werden chronologisch übertragen.
|
||||
- Numerische UID/GID, Modus, mtime, POSIX-ACLs einschließlich Default-ACLs.
|
||||
- Numerische UID/GID, Modus, POSIX-ACLs einschließlich Default-ACLs.
|
||||
- Zeitstempel je Datei, Verzeichnis und Symlink:
|
||||
|
||||
| Zeitstempel | native | rsync |
|
||||
| --- | --- | --- |
|
||||
| mtime (letzte Änderung) | ja | ja |
|
||||
| btime (Erstellung) | ja | nein |
|
||||
| atime (letzter Zugriff) | ja | nein |
|
||||
| ctime (letzte Statusänderung) | nein | nein |
|
||||
|
||||
Die ctime lässt sich mit keiner Dateisystemschnittstelle setzen. Ceph 21.2.0
|
||||
meldet `CEPH_SETATTR_CTIME` als erfolgreich, speichert aber den Zeitpunkt
|
||||
des Aufrufs (im Labor geprüft). Die atime im Ziel ändert sich danach durch
|
||||
normale Lesezugriffe der Anwendung. rsync kann unter Linux keine btime
|
||||
übertragen; atime wird nicht übernommen, weil die Prüfsummenprüfung über
|
||||
den Mount die atime im Ziel verändern kann.
|
||||
- Benutzer-xattrs und weitere portable xattrs; einschließlich leerer Werte und Löschungen.
|
||||
- Hardlinks innerhalb des Subvolumes, Symlinks und FIFOs.
|
||||
- Sparse-Dateiinhalte; der native Pfad überspringt Nullbereiche bzw. verwendet Hole-Punching.
|
||||
|
||||
Reference in new issue
Block a user