Skip to content

feat: add --store-hash to ltfs_ordered_copy tool to store content hashes in ltfs.hash.* VEAs when destination is ltfs#602

Open
hugo-hur wants to merge 2 commits into
LinearTapeFileSystem:mainfrom
hugo-hur:store-hash
Open

feat: add --store-hash to ltfs_ordered_copy tool to store content hashes in ltfs.hash.* VEAs when destination is ltfs#602
hugo-hur wants to merge 2 commits into
LinearTapeFileSystem:mainfrom
hugo-hur:store-hash

Conversation

@hugo-hur

Copy link
Copy Markdown

Summary of changes

This pull request includes following changes or fixes.

  • Add functionality to the ltfs_ordered_copy tool to store content hashes in ltfs.hash.* VEAs

Description

I thought that this feature could be useful for some archival situations that I'm running to add strong file level verification.
Since LTFS 2.4. version there is dedicated spot for these content hashes in the xattrs so why would not use those.

Tested with python 2.7 and 3+

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have confirmed my fix is effective or that my feature works

@hugo-hur

Copy link
Copy Markdown
Author

Noticed that there is actually limitation in the format spec what hashes can be used and in what format even though the implementation does not enforce it. Now the hashes should be standard conforming.

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.

1 participant