summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorKenta Tada <Kenta.Tada@sony.com>2020-06-30 22:39:23 +0900
committerKenta Tada <Kenta.Tada@sony.com>2020-07-04 11:26:31 +0900
commit624d6b44167d910f6898af14ce609b8034d17f02 (patch)
treea411f976b84e5f3cde810785c5652d01737d3169 /src/sys
parenta2f40c2810ce41a9f705eb7a51020c614fea1247 (diff)
downloadnix-624d6b44167d910f6898af14ce609b8034d17f02.zip
Add FsType for cgroupfs
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/statfs.rs4
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