Skip to content

linux-raw-sys: loongarch64 bindings are missing FIEMAP_EXTENT_* ioctl constants #1664

Description

@wszqkzqk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions