Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bors[bot] and Kenta Tada committed Jul 4, 2020
2 parents a2f40c2 + 624d6b4 commit 2542f81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sys/statfs.rs
Expand Up @@ -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
Expand Down

0 comments on commit 2542f81

Please sign in to comment.