fix(libbcachefs/ioctl): dirfd should be a signed 32 bits integer

`AT_FDCWD` is defined as a macro constant: -100, it works in C… because C.

But in Rust, this will be exposed as a u32 instead of a i32, which is the correct variable type for it.
This commit is contained in:
Raito Bezarius 2024-01-27 02:29:31 +01:00 committed by Kent Overstreet
parent 38b8d01c4c
commit 234fe664b1

View File

@ -379,7 +379,7 @@ struct bch_ioctl_disk_resize_journal {
struct bch_ioctl_subvolume { struct bch_ioctl_subvolume {
__u32 flags; __u32 flags;
__u32 dirfd; __s32 dirfd;
__u16 mode; __u16 mode;
__u16 pad[3]; __u16 pad[3];
__u64 dst_ptr; __u64 dst_ptr;