Skip to content

Commit

Permalink
Auto merge of #2928 - tammela:patch-1, r=JohnTitor
Browse files Browse the repository at this point in the history
fs: add NSFS_MAGIC constant

NSFS_MAGIC defines the filesystem type for namespaces in Linux
  • Loading branch information
bors committed Sep 27, 2022
2 parents 35cd8f0 + 30b8c52 commit 183820f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ cfg_if! {
pub const UDF_SUPER_MAGIC: ::c_long = 0x15013346;
pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
pub const XENFS_SUPER_MAGIC: ::c_long = 0xabba1974;
pub const NSFS_MAGIC: ::c_long = 0x6e736673;
} else if #[cfg(target_arch = "s390x")] {
pub const ADFS_SUPER_MAGIC: ::c_uint = 0x0000adf5;
pub const AFFS_SUPER_MAGIC: ::c_uint = 0x0000adff;
Expand Down Expand Up @@ -1487,6 +1488,7 @@ cfg_if! {
pub const UDF_SUPER_MAGIC: ::c_uint = 0x15013346;
pub const USBDEVICE_SUPER_MAGIC: ::c_uint = 0x00009fa2;
pub const XENFS_SUPER_MAGIC: ::c_uint = 0xabba1974;
pub const NSFS_MAGIC: ::c_uint = 0x6e736673;
}
}

Expand Down

0 comments on commit 183820f

Please sign in to comment.