]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic: add PIDFS magic (#31709)
authorcpackham-atlnz <85916201+cpackham-atlnz@users.noreply.github.com>
Mon, 11 Mar 2024 11:55:36 +0000 (00:55 +1300)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2024 11:55:36 +0000 (11:55 +0000)
Kernel commit cb12fd8e0dabb9a1c8aef55a6a41e2c255fcdf4b added pidfs.
Update filesystems-gperf.gperf and missing_magic.h accordingly.

This fixes the following error building against a bleeding edge kernel.
```
../src/basic/meson.build:234:8: ERROR: Problem encountered: Unknown filesystems defined in kernel headers:

Filesystem found in kernel header but not in filesystems-gperf.gperf: PID_FS_MAGIC
```

src/basic/filesystems-gperf.gperf
src/basic/missing_magic.h

index e8c5357f9146117aeb38c1c96e7f0c717d52bd37..1cd66b5a5fa99f13450b3b42015389411237d92c 100644 (file)
@@ -91,6 +91,7 @@ ocfs2,           {OCFS2_SUPER_MAGIC}
 openpromfs,      {OPENPROM_SUPER_MAGIC}
 orangefs,        {ORANGEFS_DEVREQ_MAGIC}
 overlay,         {OVERLAYFS_SUPER_MAGIC}
+pidfs,           {PID_FS_MAGIC}
 pipefs,          {PIPEFS_MAGIC}
 ppc-cmm,         {PPC_CMM_MAGIC}
 proc,            {PROC_SUPER_MAGIC}
index 27a33adecb4edd3691e7ac07eff560235902351a..82d71c8ad12337b3e64a25010ee8211fa93c2fd9 100644 (file)
 #define DEVMEM_MAGIC 0x454d444d
 #endif
 
+/* cb12fd8e0dabb9a1c8aef55a6a41e2c255fcdf4b (6.8) */
+#ifndef PID_FS_MAGIC
+#define PID_FS_MAGIC 0x50494446
+#endif
+
 /* Not in mainline but included in Ubuntu */
 #ifndef SHIFTFS_MAGIC
 #define SHIFTFS_MAGIC 0x6a656a62