Skip to content

Commit 624d6b4

Browse files
Kenta TadaKenta Tada
authored andcommitted
Add FsType for cgroupfs
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
1 parent a2f40c2 commit 624d6b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sys/statfs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ pub const SMB_SUPER_MAGIC: FsType = FsType(libc::SMB_SUPER_MAGIC);
8383
pub const TMPFS_MAGIC: FsType = FsType(libc::TMPFS_MAGIC);
8484
#[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))]
8585
pub const USBDEVICE_SUPER_MAGIC: FsType = FsType(libc::USBDEVICE_SUPER_MAGIC);
86+
#[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))]
87+
pub const CGROUP_SUPER_MAGIC: FsType = FsType(libc::CGROUP_SUPER_MAGIC);
88+
#[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))]
89+
pub const CGROUP2_SUPER_MAGIC: FsType = FsType(libc::CGROUP2_SUPER_MAGIC);
8690

8791
impl Statfs {
8892
/// Magic code defining system type

0 commit comments

Comments
 (0)