Should this implementation enforce ltfs hash xattr format and names
@syaoraang がすでに取り組んでいます。
2026年6月15日 から。
評価
この issue はまだ評価されていません。
説明
In the SNIA documents it is clearly stated that only specific ltfs.hash.<hashtype>:s xattrs and formats are conforming:
| hashtype | algorithm | bits | hex chars |
|---|---|---|---|
| crc32sum | ANSI X3.66 | 32 | 8 |
| md5sum | RFC 1321 | 128 | 32 |
| sha1sum | FIPS 180-4 | 160 | 40 |
| sha256sum | FIPS 180-4 | 256 | 64 |
| sha512sum | FIPS 180-4 | 512 | 128 |
Currently this implementation allows for writing any values and with any names into the ltfs.hash.<hashtype> xattrs.
To Reproduce
Steps to reproduce the behavior on linux builds (all examples here use non conforming attribute names):
setfattr -n user.ltfs.hash.sha256 -v "tooshort" file # text, wrong length (spec wants 64 hex chars)
setfattr -n user.ltfs.hash.crc32 -v 0xdeadbeef file # 0x… = raw BINARY bytes (spec wants UTF-8 hex text)
setfattr -n user.ltfs.hash.md5 -v 0sBgYGBgYG…== file # 0s… = raw bytes from base64
Expected behavior
LTFS should prevent from writing non-conformant information in the xatrrs.
Any thoughts on this?
- 主要言語
- C
- スター
- 352
- フォーク
- 110
- 平均マージ
- 2時間 50分
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LinearTapeFileSystem/ltfs のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
LinearTapeFileSystem/ltfs#647 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
LinearTapeFileSystem/ltfs#645 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
LinearTapeFileSystem/ltfs#643 ·
-
H/W issue HBA Report Investigating
LinearTapeFileSystem/ltfs#640 · コメント 7 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
LinearTapeFileSystem/ltfs#638 · コメント 2 件 ·
LinearTapeFileSystem/ltfs の issue をすべて見る
似ている issue
-
task
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vsanthanam/JBird#429 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
es-ude/OnDeviceTraining#459 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
bilelmoussaoui/gobject-linter#199 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bradcypert/plum#53 ·