Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Should this implementation enforce ltfs hash xattr format and names

オープン
#616 コメント 0 件 リアクション 0 件 担当者 2 名 GitHub で見る

@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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LinearTapeFileSystem/ltfs のほかの issue

LinearTapeFileSystem/ltfs の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。