Skip to content

Commit 26b68f8

Browse files
committed
Auto merge of #2622 - devnexen:fuse_super_magic, r=Amanieu
linux GLIBC add FUSE_SUPER_MAGIC close #2621
2 parents c1ffba4 + fc9854f commit 26b68f8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,6 +3182,9 @@ fn test_linux(target: &str) {
31823182
// headers conflicts with linux/pidfd.h
31833183
"PIDFD_NONBLOCK" => true,
31843184

3185+
// is a private value for kernel usage normally
3186+
"FUSE_SUPER_MAGIC" => true,
3187+
31853188
_ => false,
31863189
}
31873190
});

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ cfg_if! {
867867
pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
868868
pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
869869
pub const F2FS_SUPER_MAGIC: ::c_long = 0xf2f52010;
870+
pub const FUSE_SUPER_MAGIC: ::c_long = 0x65735546;
870871
pub const FUTEXFS_SUPER_MAGIC: ::c_long = 0xbad1dea;
871872
pub const HOSTFS_SUPER_MAGIC: ::c_long = 0x00c0ffee;
872873
pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
@@ -921,6 +922,7 @@ cfg_if! {
921922
pub const EXT3_SUPER_MAGIC: ::c_uint = 0x0000ef53;
922923
pub const EXT4_SUPER_MAGIC: ::c_uint = 0x0000ef53;
923924
pub const F2FS_SUPER_MAGIC: ::c_uint = 0xf2f52010;
925+
pub const FUSE_SUPER_MAGIC: ::c_uint = 0x65735546;
924926
pub const FUTEXFS_SUPER_MAGIC: ::c_uint = 0xbad1dea;
925927
pub const HOSTFS_SUPER_MAGIC: ::c_uint = 0x00c0ffee;
926928
pub const HPFS_SUPER_MAGIC: ::c_uint = 0xf995e849;

0 commit comments

Comments
 (0)