Skip to content

Preserving file times when copying with cptofs #393

@copumpkin

Description

@copumpkin

I need all my files inside my image to have a UNIX timestamp of 1. If I just use cptofs normally, it uses the current time. I can use libfaketime to fool cptofs into thinking that the current time is 1, but oddly enough all the timestamps in the image come out as 2 instead of 1.

So now I'm confused what's going on. Can cptofs get an option to preserve file times, or if not, does anyone know why all my timestamps are getting incremented by 1 before making it into the image?

If I tell cptofs that the time is 0, all my timestamps in the image are 1, so I'm not stuck, but it would be nice if this behaved more intuitively.

cc @dezgeg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions