Skip to content

Commit 183820f

Browse files
committed
Auto merge of #2928 - tammela:patch-1, r=JohnTitor
fs: add NSFS_MAGIC constant NSFS_MAGIC defines the filesystem type for namespaces in Linux
2 parents 35cd8f0 + 30b8c52 commit 183820f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/linux_like/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,7 @@ cfg_if! {
14341434
pub const UDF_SUPER_MAGIC: ::c_long = 0x15013346;
14351435
pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
14361436
pub const XENFS_SUPER_MAGIC: ::c_long = 0xabba1974;
1437+
pub const NSFS_MAGIC: ::c_long = 0x6e736673;
14371438
} else if #[cfg(target_arch = "s390x")] {
14381439
pub const ADFS_SUPER_MAGIC: ::c_uint = 0x0000adf5;
14391440
pub const AFFS_SUPER_MAGIC: ::c_uint = 0x0000adff;
@@ -1487,6 +1488,7 @@ cfg_if! {
14871488
pub const UDF_SUPER_MAGIC: ::c_uint = 0x15013346;
14881489
pub const USBDEVICE_SUPER_MAGIC: ::c_uint = 0x00009fa2;
14891490
pub const XENFS_SUPER_MAGIC: ::c_uint = 0xabba1974;
1491+
pub const NSFS_MAGIC: ::c_uint = 0x6e736673;
14901492
}
14911493
}
14921494

0 commit comments

Comments
 (0)