Skip to content

Commit c20fab7

Browse files
committed
statfs: add namespace fs magic
Namespace filesystem magic is missing from FsType constants.
1 parent a40d49b commit c20fab7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
66
## [Unreleased] - ReleaseDate
77
### Added
88

9+
- Added `NSFS_MAGIC` FsType on Linux and Android.
10+
([#1829](https://github.com/nix-rust/nix/pull/1829))
911
- Added `sched_getcpu` on platforms that support it.
1012
([#1825](https://github.com/nix-rust/nix/pull/1825))
1113
- Added `sched_getaffinity` and `sched_setaffinity` on FreeBSD.

src/sys/statfs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ pub const USBDEVICE_SUPER_MAGIC: FsType = FsType(libc::USBDEVICE_SUPER_MAGIC as
205205
#[cfg(any(target_os = "linux", target_os = "android"))]
206206
#[allow(missing_docs)]
207207
pub const XENFS_SUPER_MAGIC: FsType = FsType(libc::XENFS_SUPER_MAGIC as fs_type_t);
208+
#[cfg(any(target_os = "linux", target_os = "android"))]
209+
#[allow(missing_docs)]
210+
pub const NSFS_MAGIC: FsType = FsType(libc::NSFS_MAGIC as fs_type_t);
208211

209212

210213
impl Statfs {

0 commit comments

Comments
 (0)