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