Skip to content

Commit

Permalink
Define UMOUNT_NOFOLLOW, FUSE_SUPER_MAGIC
Browse files Browse the repository at this point in the history
Requested-by: jiangliu
  • Loading branch information
rtzoeller committed Jan 14, 2022
1 parent 916bbfa commit 8d68066
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -27,7 +27,7 @@ targets = [
]

[dependencies]
libc = { version = "0.2.112", features = [ "extra_traits" ] }
libc = { git = "https://github.com/rust-lang/libc", rev = "e470e3b6a1f940e0024d40d3b79fc73fe29c7f17", features = [ "extra_traits" ] }
bitflags = "1.1"
cfg-if = "1.0"

Expand Down
1 change: 1 addition & 0 deletions src/mount/linux.rs
Expand Up @@ -53,6 +53,7 @@ libc_bitflags!(
MNT_FORCE;
MNT_DETACH;
MNT_EXPIRE;
UMOUNT_NOFOLLOW;
}
);

Expand Down
3 changes: 3 additions & 0 deletions src/sys/statfs.rs
Expand Up @@ -73,6 +73,9 @@ pub const EXT3_SUPER_MAGIC: FsType = FsType(libc::EXT3_SUPER_MAGIC as fs_type_t)
pub const EXT4_SUPER_MAGIC: FsType = FsType(libc::EXT4_SUPER_MAGIC as fs_type_t);
#[cfg(all(target_os = "linux", not(target_env = "musl")))]
#[allow(missing_docs)]
pub const FUSE_SUPER_MAGIC: FsType = FsType(libc::FUSE_SUPER_MAGIC as fs_type_t);
#[cfg(all(target_os = "linux", not(target_env = "musl")))]
#[allow(missing_docs)]
pub const HPFS_SUPER_MAGIC: FsType = FsType(libc::HPFS_SUPER_MAGIC as fs_type_t);
#[cfg(all(target_os = "linux", not(target_env = "musl")))]
#[allow(missing_docs)]
Expand Down

0 comments on commit 8d68066

Please sign in to comment.