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

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