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

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