parity: --fake-super faking for directories #319

Closed
opened 2026-09-23 02:10:49 +02:00 by TapTap · 1 comment
Owner

--fake-super now fakes regular files and char/block devices via user.rsync.%stat, but directories get no %stat record. Implement directory faking (mode/uid/gid on the directory itself) to match rsync.

Files: src/shared/xattr.c (fake_super_store_fd), src/shared/file_save.c/file_receive.c directory paths, tests.

`--fake-super` now fakes regular files and char/block devices via `user.rsync.%stat`, but directories get no `%stat` record. Implement directory faking (mode/uid/gid on the directory itself) to match rsync. Files: `src/shared/xattr.c` (`fake_super_store_fd`), `src/shared/file_save.c`/`file_receive.c` directory paths, tests.
TapTap added the enhancement label 2026-09-23 02:10:49 +02:00
Author
Owner

Fixed in PR #329. --fake-super now records a directory's full stat in user.rsync.%stat on the directory itself and restores it (permission bits on disk, never real-chown), rsync 3.4.1-interoperable. Residuals: symlinks are not faked (real symlink vs rsync's regular-file + S_IFLNK record); the record is stored unconditionally. Closing as completed.

Fixed in PR #329. `--fake-super` now records a directory's full stat in `user.rsync.%stat` on the directory itself and restores it (permission bits on disk, never real-chown), rsync 3.4.1-interoperable. Residuals: symlinks are not faked (real symlink vs rsync's regular-file + S_IFLNK record); the record is stored unconditionally. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TapTap/FastSync#319