|
|
8d419f |
From 75b23fa0a4916a228b2b66e73044378931862a49 Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
8d419f |
Date: Sun, 30 Jan 2022 23:40:05 +0100
|
|
|
8d419f |
Subject: [PATCH] basic: update CIFS magic
|
|
|
8d419f |
|
|
|
8d419f |
Kernel commit dea2903719283c156b53741126228c4a1b40440f exposed (and
|
|
|
8d419f |
renamed) CIFS_MAGIC_NUMBER as CIFS_SUPER_MAGIC along with
|
|
|
8d419f |
SMB2_SUPER_MAGIC.
|
|
|
8d419f |
|
|
|
8d419f |
This fixes the following build fail on current Fedora Rawhide:
|
|
|
8d419f |
```
|
|
|
8d419f |
../src/basic/meson.build:389:8: ERROR: Problem encountered: found unknown filesystem(s) defined in kernel headers:
|
|
|
8d419f |
|
|
|
8d419f |
Filesystem found in kernel header but not in filesystems-gperf.gperf: CIFS_SUPER_MAGIC
|
|
|
8d419f |
Filesystem found in kernel header but not in filesystems-gperf.gperf: SMB2_SUPER_MAGIC
|
|
|
8d419f |
```
|
|
|
8d419f |
|
|
|
8d419f |
(cherry picked from commit bbe53713455be38c0a587626439fd171f28c77fc)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2017035
|
|
|
8d419f |
---
|
|
|
8d419f |
src/basic/filesystems-gperf.gperf | 4 ++--
|
|
|
8d419f |
src/basic/missing_magic.h | 11 ++++++++---
|
|
|
8d419f |
2 files changed, 10 insertions(+), 5 deletions(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/src/basic/filesystems-gperf.gperf b/src/basic/filesystems-gperf.gperf
|
|
|
8d419f |
index 08c8c44510..e8c5357f91 100644
|
|
|
8d419f |
--- a/src/basic/filesystems-gperf.gperf
|
|
|
8d419f |
+++ b/src/basic/filesystems-gperf.gperf
|
|
|
8d419f |
@@ -40,7 +40,7 @@ ceph, {CEPH_SUPER_MAGIC}
|
|
|
8d419f |
cgroup2, {CGROUP2_SUPER_MAGIC}
|
|
|
8d419f |
# note that the cgroupfs magic got reassigned from cpuset
|
|
|
8d419f |
cgroup, {CGROUP_SUPER_MAGIC}
|
|
|
8d419f |
-cifs, {CIFS_MAGIC_NUMBER}
|
|
|
8d419f |
+cifs, {CIFS_SUPER_MAGIC, SMB2_SUPER_MAGIC}
|
|
|
8d419f |
coda, {CODA_SUPER_MAGIC}
|
|
|
8d419f |
configfs, {CONFIGFS_MAGIC}
|
|
|
8d419f |
cramfs, {CRAMFS_MAGIC}
|
|
|
8d419f |
@@ -109,7 +109,7 @@ selinuxfs, {SELINUX_MAGIC}
|
|
|
8d419f |
shiftfs, {SHIFTFS_MAGIC}
|
|
|
8d419f |
smackfs, {SMACK_MAGIC}
|
|
|
8d419f |
# smb3 is an alias for cifs
|
|
|
8d419f |
-smb3, {CIFS_MAGIC_NUMBER}
|
|
|
8d419f |
+smb3, {CIFS_SUPER_MAGIC}
|
|
|
8d419f |
# smbfs was removed from the kernel in 2010, the magic remains
|
|
|
8d419f |
smbfs, {SMB_SUPER_MAGIC}
|
|
|
8d419f |
sockfs, {SOCKFS_MAGIC}
|
|
|
8d419f |
diff --git a/src/basic/missing_magic.h b/src/basic/missing_magic.h
|
|
|
8d419f |
index 7d9320bb6d..c104fcfba3 100644
|
|
|
8d419f |
--- a/src/basic/missing_magic.h
|
|
|
8d419f |
+++ b/src/basic/missing_magic.h
|
|
|
8d419f |
@@ -38,9 +38,14 @@
|
|
|
8d419f |
#define XFS_SB_MAGIC 0x58465342
|
|
|
8d419f |
#endif
|
|
|
8d419f |
|
|
|
8d419f |
-/* Not exposed yet. Defined at fs/cifs/cifsglob.h */
|
|
|
8d419f |
-#ifndef CIFS_MAGIC_NUMBER
|
|
|
8d419f |
-#define CIFS_MAGIC_NUMBER 0xFF534D42
|
|
|
8d419f |
+/* dea2903719283c156b53741126228c4a1b40440f (5.17) */
|
|
|
8d419f |
+#ifndef CIFS_SUPER_MAGIC
|
|
|
8d419f |
+#define CIFS_SUPER_MAGIC 0xFF534D42
|
|
|
8d419f |
+#endif
|
|
|
8d419f |
+
|
|
|
8d419f |
+/* dea2903719283c156b53741126228c4a1b40440f (5.17) */
|
|
|
8d419f |
+#ifndef SMB2_SUPER_MAGIC
|
|
|
8d419f |
+#define SMB2_SUPER_MAGIC 0xFE534D42
|
|
|
8d419f |
#endif
|
|
|
8d419f |
|
|
|
8d419f |
/* 257f871993474e2bde6c497b54022c362cf398e1 (4.5) */
|