Skip to content

option to rehash on change of ctime vs mtime #32

@patrickwolf

Description

@patrickwolf

When a file is deduplicated (#15 ) its size and mtime does not change. So hashio would not know that deduplication has occurred
In general that is fine since deduplication should not change the file data...

But in my case I'd like to make a snapshot before deduplication and also make one after deduplication and I would like for a new hash to be generated so I can verify 100% that nothing has changed.

For this use case to work a new option would be needed --verify-ctime and if this option is set and the ctime has changed then the file would need to be rehashed even if mtime has not changed.

Alternatively in case this is too specific an option --rehash or --ignore-cache would be helpful that allow for rehashing for those that are paranoid or need 150% certainty.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions