Skip to content

feat: wire atime and crtime preservation into generator file list building - #2561

Merged
oferchen merged 1 commit into
masterfrom
feat/generator-atime-crtime-wiring
Mar 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/generator-atime-crtime-wiring

Conversation

@oferchen

@oferchen oferchen commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Wire preserve_crtimes flag into FileListWriter builder in build_flist_writer() (was missing, preserve_atimes was already wired)
  • Read atime from source file metadata in create_entry() when --atimes is enabled (unix: MetadataExt::atime(), non-unix: metadata.accessed())
  • Read crtime/birthtime from source file metadata in create_entry() when --crtimes is enabled (cross-platform via metadata.created())

These changes complete the generator-side wiring for atime and crtime - the FileListWriter and FileListReader already handle encoding/decoding these fields on the wire.

Test plan

  • CI passes (fmt, clippy, nextest, all platforms)
  • Verify --atimes flag populates atime in file list entries
  • Verify --crtimes flag populates crtime in file list entries

…lding

- Add .with_preserve_crtimes() to FileListWriter builder in build_flist_writer()
- Read atime from source file metadata when --atimes is enabled (unix: MetadataExt::atime(), non-unix: metadata.accessed())
- Read crtime/birthtime from source file metadata when --crtimes is enabled (cross-platform via metadata.created())
@github-actions github-actions Bot added the enhancement New feature or request label Mar 7, 2026
@oferchen
oferchen merged commit ed4a1ed into master Mar 7, 2026
32 checks passed
@oferchen
oferchen deleted the feat/generator-atime-crtime-wiring branch March 7, 2026 08:50
oferchen added a commit that referenced this pull request May 1, 2026
…lding (#2561)

- Add .with_preserve_crtimes() to FileListWriter builder in build_flist_writer()
- Read atime from source file metadata when --atimes is enabled (unix: MetadataExt::atime(), non-unix: metadata.accessed())
- Read crtime/birthtime from source file metadata when --crtimes is enabled (cross-platform via metadata.created())
oferchen added a commit that referenced this pull request May 5, 2026
…lding (#2561)

- Add .with_preserve_crtimes() to FileListWriter builder in build_flist_writer()
- Read atime from source file metadata when --atimes is enabled (unix: MetadataExt::atime(), non-unix: metadata.accessed())
- Read crtime/birthtime from source file metadata when --crtimes is enabled (cross-platform via metadata.created())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant