Should this implementation enforce ltfs hash xattr format and names
@syaoraang ci sta già lavorando.
Dal 15/6/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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?
- Lingua principale
- C
- Stelle
- 352
- Fork
- 110
- Merge medio
- 2h 50m
- PR unite (30g)
- 2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LinearTapeFileSystem/ltfs
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
LinearTapeFileSystem/ltfs#647 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
LinearTapeFileSystem/ltfs#645 · 3 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
LinearTapeFileSystem/ltfs#643 ·
-
H/W issue HBA Report Investigating
LinearTapeFileSystem/ltfs#640 · 7 commenti · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
LinearTapeFileSystem/ltfs#638 · 2 commenti ·
Tutte le issue di LinearTapeFileSystem/ltfs
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
zephyrproject-rtos/zephyr#120318 · 1 commento ·
-
issue: bug report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
darktable-org/darktable#22386 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100