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

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