diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-04 03:42:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 03:42:26 +0000 |
commit | 2542f81237be13e920d570b4a5c122916ac21814 (patch) | |
tree | a411f976b84e5f3cde810785c5652d01737d3169 /src/sys | |
parent | a2f40c2810ce41a9f705eb7a51020c614fea1247 (diff) | |
parent | 624d6b44167d910f6898af14ce609b8034d17f02 (diff) | |
download | nix-2542f81237be13e920d570b4a5c122916ac21814.zip |
Merge #1266
1266: Add FsType for cgroupfs r=asomers a=KentaTada
`CGROUP_SUPER_MAGIC` and `CGROUP2_SUPER_MAGIC` are not supported currently.
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Co-authored-by: Kenta Tada <Kenta.Tada@sony.com>
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/statfs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs index 3d46be9c..a7b30e30 100644 --- a/src/sys/statfs.rs +++ b/src/sys/statfs.rs @@ -83,6 +83,10 @@ pub const SMB_SUPER_MAGIC: FsType = FsType(libc::SMB_SUPER_MAGIC); pub const TMPFS_MAGIC: FsType = FsType(libc::TMPFS_MAGIC); #[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))] pub const USBDEVICE_SUPER_MAGIC: FsType = FsType(libc::USBDEVICE_SUPER_MAGIC); +#[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))] +pub const CGROUP_SUPER_MAGIC: FsType = FsType(libc::CGROUP_SUPER_MAGIC); +#[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))] +pub const CGROUP2_SUPER_MAGIC: FsType = FsType(libc::CGROUP2_SUPER_MAGIC); impl Statfs { /// Magic code defining system type |