Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

LoongArch ioctl bindings omit FIEMAP constants

未关闭 适合新手
#192 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust

调研方向

从 gen/ioctl/loongarch-ioctls.txt 开始,将其中的 FIEMAP 条目与其他架构的快照以及 gen/ioctl/list.c 进行比较。重新生成或验证 LoongArch 绑定,然后检查 src/loongarch64/ioctl.rs,确认 FIEMAP_EXTENT_* 常量已公开。

由索引模型根据 Issue 内容生成。

描述

linux_raw_sys::ioctl on loongarch64 does not expose the FIEMAP constants
added in #97, such as FIEMAP_EXTENT_LAST, FIEMAP_EXTENT_SHARED, and
FIEMAP_EXTENT_DATA_INLINE.

gen/ioctl/list.c requests these constants, and generated bindings for other
architectures contain them. However, LoongArch uses the static fallback:

cat loongarch-ioctls.txt >> "$out"

The static gen/ioctl/loongarch-ioctls.txt contains FS_IOC_FIEMAP, but no
FIEMAP_* definitions at all. Consequently,
src/loongarch64/ioctl.rs contains FS_IOC_FIEMAP but no
FIEMAP_EXTENT_* constants.

This appears to have started when #97 added the FIEMAP requests: the LoongArch
static snapshot was not regenerated/updated. Commit #174 retained the static
fallback while updating the general generator, but did not modify this file.

主要语言
Rust
星标
71
派生
64
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sunfishcode/linux-raw-sys 的其他 Issue

查看 sunfishcode/linux-raw-sys 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。