Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/archive: use subsecond timestamps in Copy...WithTar #180

Merged
merged 2 commits into from
May 30, 2018

Conversation

nalind
Copy link
Member

@nalind nalind commented May 29, 2018

When we know we're going to extract the contents of a tar archive as part of a copying process, set the desired format in the tar header to FormatPAX so that we get subsecond precision in timestamps, so that the timestamps on the copies of files that we create aren't rounded off.

@nalind
Copy link
Member Author

nalind commented May 29, 2018

Making this change based on the docs in the standard library.

nalind added 2 commits May 29, 2018 17:28
When we know we're going to extract the contents of a tar archive as
part of a copying process, set the desired format in the tar header to
PAX so that we get subsecond precision in timestamps, so that the
timestamps on the copies that we create aren't rounded off.

Signed-off-by: Nalin Dahyabhai <[email protected]>
Signed-off-by: Nalin Dahyabhai <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented May 30, 2018

LGTM

@rhatdan rhatdan merged commit 8a34ffd into containers:master May 30, 2018
@nalind nalind deleted the subsecond branch June 15, 2018 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants