Skip to content

Commit 2542f81

Browse files
bors[bot]Kenta Tada
and
Kenta Tada
authored
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 <[email protected]> Co-authored-by: Kenta Tada <[email protected]>
2 parents a2f40c2 + 624d6b4 commit 2542f81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sys/statfs.rs

+4
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)