summaryrefslogtreecommitdiff
path: root/libbcachefs
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2024-01-27 02:29:31 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-26 20:39:08 -0500
commit234fe664b1444dc8ba5309bd6bbfdf83862467b3 (patch)
treed29e8f356a88cdacf1fd99e925a8fea7184abc43 /libbcachefs
parent38b8d01c4cf823d9804451eff5ec811c17b03408 (diff)
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.
Diffstat (limited to 'libbcachefs')
-rw-r--r--libbcachefs/bcachefs_ioctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/bcachefs_ioctl.h b/libbcachefs/bcachefs_ioctl.h
index 4b8fba75..cbad7a9e 100644
--- a/libbcachefs/bcachefs_ioctl.h
+++ b/libbcachefs/bcachefs_ioctl.h
@@ -379,7 +379,7 @@ struct bch_ioctl_disk_resize_journal {
struct bch_ioctl_subvolume {
__u32 flags;
- __u32 dirfd;
+ __s32 dirfd;
__u16 mode;
__u16 pad[3];
__u64 dst_ptr;