Blame SOURCES/corefx-39633-cgroupv2-mountpoints.patch

f99f78
From 1864630f762160e1cb439362cc0577471624192a Mon Sep 17 00:00:00 2001
f99f78
From: Omair Majid <omajid@redhat.com>
f99f78
Date: Fri, 19 Jul 2019 19:18:51 -0400
f99f78
Subject: [PATCH] Fix up cgroup2fs in Interop.MountPoints.FormatInfo
f99f78
f99f78
`stat -fc %T /sys/fs/cgroup` calls this file system `cgroup2fs`
f99f78
f99f78
Add the cgroup2fs file system magic number. Available from:
f99f78
f99f78
  - https://www.kernel.org/doc/Documentation/cgroup-v2.txt
f99f78
  - man 2 statfs
f99f78
f99f78
Move cgroup2fs next to cgroupfs in the drive type list, since it is also
f99f78
DriveType.Ram.
f99f78
---
f99f78
 .../Unix/System.Native/Interop.MountPoints.FormatInfo.cs       | 3 ++-
f99f78
 1 file changed, 2 insertions(+), 1 deletion(-)
f99f78
f99f78
diff --git a/src/Common/src/Interop/Unix/System.Native/Interop.MountPoints.FormatInfo.cs b/src/Common/src/Interop/Unix/System.Native/Interop.MountPoints.FormatInfo.cs
f99f78
index af38a2285ba2..4240bd4853ab 100644
f99f78
--- a/src/Common/src/Interop/Unix/System.Native/Interop.MountPoints.FormatInfo.cs
f99f78
+++ b/src/Common/src/Interop/Unix/System.Native/Interop.MountPoints.FormatInfo.cs
f99f78
@@ -47,6 +47,7 @@ internal enum UnixFileSystemTypes : long
f99f78
             btrfs = 0x9123683E,
f99f78
             ceph = 0x00C36400,
f99f78
             cgroupfs = 0x0027E0EB,
f99f78
+            cgroup2fs = 0x63677270,
f99f78
             cifs = 0xFF534D42,
f99f78
             coda = 0x73757245,
f99f78
             coherent = 0x012FF7B7,
f99f78
@@ -231,7 +232,6 @@ private static DriveType GetDriveType(string fileSystemName)
f99f78
                 case "bpf_fs":
f99f78
                 case "btrfs":
f99f78
                 case "btrfs_test":
f99f78
-                case "cgroup2fs":
f99f78
                 case "coh":
f99f78
                 case "daxfs":
f99f78
                 case "drvfs":
f99f78
@@ -384,6 +384,7 @@ private static DriveType GetDriveType(string fileSystemName)
f99f78
                 case "binfmt_misc":
f99f78
                 case "cgroup":
f99f78
                 case "cgroupfs":
f99f78
+                case "cgroup2fs":
f99f78
                 case "configfs":
f99f78
                 case "cramfs":
f99f78
                 case "cramfs-wend":