Files
libfreemkv/docs/fs-type-linux.md
T
Matthew Jackson 6e14fc0c0c libfreemkv: 1.7.0 groundwork — sector-recycle soundness + CI hardening
Security
- Remove the unsafe Vec::set_len over recycled sector buffers — UB reachable
  from safe code (GHSA-j8ww-f5fg-9pmh, low). Uses Vec::resize; pooling unchanged.

CI / tooling
- clippy on stable with the MSRV single-sourced from Cargo.toml; cargo-deny
  dependency-audit gate with first-party git sources allowed (#15); audience-based
  comment-guard (#17).

Docs
- README (keydb ownership, BD-J parser count), drive-access transport/reset
  notes, mux timeline module-doc links.
2026-09-02 12:40:55 -07:00

602 B

Linux f_type classification

classify_f_type in src/platform/fs_type/linux.rs is the single source of truth for the magic-number comparisons used by both the path-based (detect_impl) and fd-based (detect_fd_impl) entry points.

Why the i64 cast

statfs::f_type is signed __fsword_t on glibc and unsigned c_ulong on musl; a portable comparison needs a common type, so the value is cast to i64. On glibc x86_64 both are already i64 — clippy flags the cast as unnecessary on that target only, but the cast is required for musl, hence the #[allow(clippy::unnecessary_cast)].