The loongarch64 bindings in linux-raw-sys 0.12.1 export only FS_IOC_FIEMAP from
linux_raw_sys::ioctl, but none of the FIEMAP_EXTENT_* flag constants, while
the x86_64 bindings export all 11 of them. This breaks building crates that use
these constants on loongarch64.
Reproducer
// fails to compile with --target loongarch64-unknown-linux-gnu
use linux_raw_sys::ioctl::{
FIEMAP_EXTENT_DATA_INLINE, FIEMAP_EXTENT_DELALLOC, FIEMAP_EXTENT_ENCODED,
FIEMAP_EXTENT_LAST, FIEMAP_EXTENT_NOT_ALIGNED, FIEMAP_EXTENT_SHARED,
FIEMAP_EXTENT_UNKNOWN,
};
error[E0432]: unresolved imports `linux_raw_sys::ioctl::FIEMAP_EXTENT_DATA_INLINE`,
`linux_raw_sys::ioctl::FIEMAP_EXTENT_DELALLOC`, ...
This was hit in the wild building uv 0.12.5 for loongarch64 with linux-raw-sys 0.12.1.
The loongarch64 bindings in
linux-raw-sys0.12.1 export onlyFS_IOC_FIEMAPfromlinux_raw_sys::ioctl, but none of theFIEMAP_EXTENT_*flag constants, whilethe x86_64 bindings export all 11 of them. This breaks building crates that use
these constants on loongarch64.
Reproducer
This was hit in the wild building uv 0.12.5 for loongarch64 with linux-raw-sys 0.12.1.