LoongArch ioctl bindings omit FIEMAP constants
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- operating-systems
Research direction
Start with gen/ioctl/loongarch-ioctls.txt and compare its FIEMAP entries with other architecture snapshots and gen/ioctl/list.c. Regenerate or validate the LoongArch bindings, then check src/loongarch64/ioctl.rs to confirm the FIEMAP_EXTENT_* constants are exposed.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 71
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sunfishcode/linux-raw-sys
-
add OPENAT2_REGULAR Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
sunfishcode/linux-raw-sys#194 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sunfishcode/linux-raw-sys#188 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
sunfishcode/linux-raw-sys#189 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
sunfishcode/linux-raw-sys#179 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
sunfishcode/linux-raw-sys#173 · 17 comments ·
All issues in sunfishcode/linux-raw-sys
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·