linux GLIBC add FUSE_SUPER_MAGIC

close #2621
This commit is contained in:
David Carlier 2022-01-11 18:32:41 +00:00
parent c1b386055f
commit fc9854f0d3
2 changed files with 5 additions and 0 deletions

View file

@ -3182,6 +3182,9 @@ fn test_linux(target: &str) {
// headers conflicts with linux/pidfd.h // headers conflicts with linux/pidfd.h
"PIDFD_NONBLOCK" => true, "PIDFD_NONBLOCK" => true,
// is a private value for kernel usage normally
"FUSE_SUPER_MAGIC" => true,
_ => false, _ => false,
} }
}); });

View file

@ -867,6 +867,7 @@ cfg_if! {
pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53; pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53; pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
pub const F2FS_SUPER_MAGIC: ::c_long = 0xf2f52010; pub const F2FS_SUPER_MAGIC: ::c_long = 0xf2f52010;
pub const FUSE_SUPER_MAGIC: ::c_long = 0x65735546;
pub const FUTEXFS_SUPER_MAGIC: ::c_long = 0xbad1dea; pub const FUTEXFS_SUPER_MAGIC: ::c_long = 0xbad1dea;
pub const HOSTFS_SUPER_MAGIC: ::c_long = 0x00c0ffee; pub const HOSTFS_SUPER_MAGIC: ::c_long = 0x00c0ffee;
pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849; pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
@ -921,6 +922,7 @@ cfg_if! {
pub const EXT3_SUPER_MAGIC: ::c_uint = 0x0000ef53; pub const EXT3_SUPER_MAGIC: ::c_uint = 0x0000ef53;
pub const EXT4_SUPER_MAGIC: ::c_uint = 0x0000ef53; pub const EXT4_SUPER_MAGIC: ::c_uint = 0x0000ef53;
pub const F2FS_SUPER_MAGIC: ::c_uint = 0xf2f52010; pub const F2FS_SUPER_MAGIC: ::c_uint = 0xf2f52010;
pub const FUSE_SUPER_MAGIC: ::c_uint = 0x65735546;
pub const FUTEXFS_SUPER_MAGIC: ::c_uint = 0xbad1dea; pub const FUTEXFS_SUPER_MAGIC: ::c_uint = 0xbad1dea;
pub const HOSTFS_SUPER_MAGIC: ::c_uint = 0x00c0ffee; pub const HOSTFS_SUPER_MAGIC: ::c_uint = 0x00c0ffee;
pub const HPFS_SUPER_MAGIC: ::c_uint = 0xf995e849; pub const HPFS_SUPER_MAGIC: ::c_uint = 0xf995e849;