Skip to content

Commit 985de0e

Browse files
committed
fix: make FUSE_ROOT_ID an u64
Signed-off-by: Martin Kröning <[email protected]>
1 parent 2cee5d4 commit 985de0e

5 files changed

+27
-3
lines changed

Diff for: bindgen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ gen() {
1818

1919
gen include/linux.h -o src/linux.rs
2020
gen include/macos.h -o src/macos.rs -- -D __APPLE__
21-
git apply 0001-fix-add-zerocopy-support-for-__IncompleteArrayField.patch
21+
git apply patches/*

Diff for: patches/0002-fix-make-FUSE_ROOT_ID-an-u64.patch

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/src/linux.rs b/src/linux.rs
2+
--- a/src/linux.rs
3+
+++ b/src/linux.rs
4+
@@ -40,7 +40,7 @@ impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
5+
}
6+
pub const FUSE_KERNEL_VERSION: u32 = 7;
7+
pub const FUSE_KERNEL_MINOR_VERSION: u32 = 40;
8+
-pub const FUSE_ROOT_ID: u32 = 1;
9+
+pub const FUSE_ROOT_ID: u64 = 1;
10+
pub const FATTR_MODE: u32 = 1;
11+
pub const FATTR_UID: u32 = 2;
12+
pub const FATTR_GID: u32 = 4;
13+
diff --git a/src/macos.rs b/src/macos.rs
14+
--- a/src/macos.rs
15+
+++ b/src/macos.rs
16+
@@ -40,7 +40,7 @@ impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
17+
}
18+
pub const FUSE_KERNEL_VERSION: u32 = 7;
19+
pub const FUSE_KERNEL_MINOR_VERSION: u32 = 19;
20+
-pub const FUSE_ROOT_ID: u32 = 1;
21+
+pub const FUSE_ROOT_ID: u64 = 1;
22+
pub const FATTR_MODE: u32 = 1;
23+
pub const FATTR_UID: u32 = 2;
24+
pub const FATTR_GID: u32 = 4;

Diff for: src/linux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
4040
}
4141
pub const FUSE_KERNEL_VERSION: u32 = 7;
4242
pub const FUSE_KERNEL_MINOR_VERSION: u32 = 40;
43-
pub const FUSE_ROOT_ID: u32 = 1;
43+
pub const FUSE_ROOT_ID: u64 = 1;
4444
pub const FATTR_MODE: u32 = 1;
4545
pub const FATTR_UID: u32 = 2;
4646
pub const FATTR_GID: u32 = 4;

Diff for: src/macos.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
4040
}
4141
pub const FUSE_KERNEL_VERSION: u32 = 7;
4242
pub const FUSE_KERNEL_MINOR_VERSION: u32 = 19;
43-
pub const FUSE_ROOT_ID: u32 = 1;
43+
pub const FUSE_ROOT_ID: u64 = 1;
4444
pub const FATTR_MODE: u32 = 1;
4545
pub const FATTR_UID: u32 = 2;
4646
pub const FATTR_GID: u32 = 4;

0 commit comments

Comments
 (0)