Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Should this implementation enforce ltfs hash xattr format and names

Đang mở
#616 0 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

@syaoraang đang làm issue này rồi.

Từ ngày 15/6/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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?

Ngôn ngữ chính
C
Star
358
Fork
111
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LinearTapeFileSystem/ltfs

Tất cả issue của LinearTapeFileSystem/ltfs

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.