]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_magic.h
Merge pull request #21838 from lnussel/logind-refactor
[thirdparty/systemd.git] / src / basic / missing_magic.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <linux/magic.h>
5
6 /* 62aa81d7c4c24b90fdb61da70ac0dbbc414f9939 (4.13) */
7 #ifndef OCFS2_SUPER_MAGIC
8 #define OCFS2_SUPER_MAGIC 0x7461636f
9 #endif
10
11 /* 67e9c74b8a873408c27ac9a8e4c1d1c8d72c93ff (4.5) */
12 #ifndef CGROUP2_SUPER_MAGIC
13 #define CGROUP2_SUPER_MAGIC 0x63677270
14 #endif
15
16 /* 4282d60689d4f21b40692029080440cc58e8a17d (4.1) */
17 #ifndef TRACEFS_MAGIC
18 #define TRACEFS_MAGIC 0x74726163
19 #endif
20
21 /* e149ed2b805fefdccf7ccdfc19eca22fdd4514ac (3.19) */
22 #ifndef NSFS_MAGIC
23 #define NSFS_MAGIC 0x6e736673
24 #endif
25
26 /* b2197755b2633e164a439682fb05a9b5ea48f706 (4.4) */
27 #ifndef BPF_FS_MAGIC
28 #define BPF_FS_MAGIC 0xcafe4a11
29 #endif
30
31 /* Not exposed yet (4.20). Defined at ipc/mqueue.c */
32 #ifndef MQUEUE_MAGIC
33 #define MQUEUE_MAGIC 0x19800202
34 #endif
35
36 /* Not exposed yet (as of Linux 5.4). Defined in fs/xfs/libxfs/xfs_format.h */
37 #ifndef XFS_SB_MAGIC
38 #define XFS_SB_MAGIC 0x58465342
39 #endif
40
41 /* dea2903719283c156b53741126228c4a1b40440f (5.17) */
42 #ifndef CIFS_SUPER_MAGIC
43 #define CIFS_SUPER_MAGIC 0xFF534D42
44 #endif
45
46 /* dea2903719283c156b53741126228c4a1b40440f (5.17) */
47 #ifndef SMB2_SUPER_MAGIC
48 #define SMB2_SUPER_MAGIC 0xFE534D42
49 #endif
50
51 /* 257f871993474e2bde6c497b54022c362cf398e1 (4.5) */
52 #ifndef OVERLAYFS_SUPER_MAGIC
53 #define OVERLAYFS_SUPER_MAGIC 0x794c7630
54 #endif
55
56 /* 2a28900be20640fcd1e548b1e3bad79e8221fcf9 (4.7) */
57 #ifndef UDF_SUPER_MAGIC
58 #define UDF_SUPER_MAGIC 0x15013346
59 #endif
60
61 /* b1123ea6d3b3da25af5c8a9d843bd07ab63213f4 (4.8)*/
62 #ifndef BALLOON_KVM_MAGIC
63 #define BALLOON_KVM_MAGIC 0x13661366
64 #endif
65
66 /* 48b4800a1c6af2cdda344ea4e2c843dcc1f6afc9 (4.8) */
67 #ifndef ZSMALLOC_MAGIC
68 #define ZSMALLOC_MAGIC 0x58295829
69 #endif
70
71 /* 3bc52c45bac26bf7ed1dc8d287ad1aeaed1250b6 (4.9) */
72 #ifndef DAXFS_MAGIC
73 #define DAXFS_MAGIC 0x64646178
74 #endif
75
76 /* 5ff193fbde20df5d80fec367cea3e7856c057320 (4.10) */
77 #ifndef RDTGROUP_SUPER_MAGIC
78 #define RDTGROUP_SUPER_MAGIC 0x7655821
79 #endif
80
81 /* a481f4d917835cad86701fc0d1e620c74bb5cd5f (4.13) */
82 #ifndef AAFS_MAGIC
83 #define AAFS_MAGIC 0x5a3c69f0
84 #endif
85
86 /* f044c8847bb61eff5e1e95b6f6bb950e7f4a73a4 (4.15) */
87 #ifndef AFS_FS_MAGIC
88 #define AFS_FS_MAGIC 0x6b414653
89 #endif
90
91 /* dddde68b8f06dd83486124b8d245e7bfb15c185d (4.20) */
92 #ifndef XFS_SUPER_MAGIC
93 #define XFS_SUPER_MAGIC 0x58465342
94 #endif
95
96 /* 3ad20fe393b31025bebfc2d76964561f65df48aa (5.0) */
97 #ifndef BINDERFS_SUPER_MAGIC
98 #define BINDERFS_SUPER_MAGIC 0x6c6f6f70
99 #endif
100
101 /* ed63bb1d1f8469586006a9ca63c42344401aa2ab (5.3) */
102 #ifndef DMA_BUF_MAGIC
103 #define DMA_BUF_MAGIC 0x444d4142
104 #endif
105
106 /* ea8157ab2ae5e914dd427e5cfab533b6da3819cd (5.3) */
107 #ifndef Z3FOLD_MAGIC
108 #define Z3FOLD_MAGIC 0x33
109 #endif
110
111 /* 47e4937a4a7ca4184fd282791dfee76c6799966a (5.4) */
112 #ifndef EROFS_SUPER_MAGIC_V1
113 #define EROFS_SUPER_MAGIC_V1 0xe0f5e1e2
114 #endif
115
116 /* fe030c9b85e6783bc52fe86449c0a4b8aa16c753 (5.5) */
117 #ifndef PPC_CMM_MAGIC
118 #define PPC_CMM_MAGIC 0xc7571590
119 #endif
120
121 /* 8dcc1a9d90c10fa4143e5c17821082e5e60e46a1 (5.6) */
122 #ifndef ZONEFS_MAGIC
123 #define ZONEFS_MAGIC 0x5a4f4653
124 #endif
125
126 /* 3234ac664a870e6ea69ae3a57d824cd7edbeacc5 (5.8) */
127 #ifndef DEVMEM_MAGIC
128 #define DEVMEM_MAGIC 0x454d444d
129 #endif
130
131 /* Not in mainline but included in Ubuntu */
132 #ifndef SHIFTFS_MAGIC
133 #define SHIFTFS_MAGIC 0x6a656a62
134 #endif
135
136 /* 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 (5.14) */
137 #ifndef SECRETMEM_MAGIC
138 #define SECRETMEM_MAGIC 0x5345434d
139 #endif
140
141 /* Not exposed yet. Defined at fs/fuse/inode.c */
142 #ifndef FUSE_SUPER_MAGIC
143 #define FUSE_SUPER_MAGIC 0x65735546
144 #endif
145
146 /* Not exposed yet. Defined at fs/fuse/control.c */
147 #ifndef FUSE_CTL_SUPER_MAGIC
148 #define FUSE_CTL_SUPER_MAGIC 0x65735543
149 #endif
150
151 /* Not exposed yet. Defined at fs/ceph/super.h */
152 #ifndef CEPH_SUPER_MAGIC
153 #define CEPH_SUPER_MAGIC 0x00c36400
154 #endif
155
156 /* Not exposed yet. Defined at fs/orangefs/orangefs-kernel.h */
157 #ifndef ORANGEFS_DEVREQ_MAGIC
158 #define ORANGEFS_DEVREQ_MAGIC 0x20030529
159 #endif
160
161 /* linux/gfs2_ondisk.h */
162 #ifndef GFS2_MAGIC
163 #define GFS2_MAGIC 0x01161970
164 #endif
165
166 /* Not exposed yet. Defined at fs/configfs/mount.c */
167 #ifndef CONFIGFS_MAGIC
168 #define CONFIGFS_MAGIC 0x62656570
169 #endif
170
171 /* Not exposed yet. Defined at fs/vboxsf/super.c */
172 #ifndef VBOXSF_SUPER_MAGIC
173 #define VBOXSF_SUPER_MAGIC 0x786f4256
174 #endif
175
176 /* Not exposed yet. Defined at fs/exfat/exfat_fs.h */
177 #ifndef EXFAT_SUPER_MAGIC
178 #define EXFAT_SUPER_MAGIC 0x2011BAB0UL
179 #endif
180
181 /* Not exposed yet, internally actually called RPCAUTH_GSSMAGIC. Defined in net/sunrpc/rpc_pipe.c */
182 #ifndef RPC_PIPEFS_SUPER_MAGIC
183 #define RPC_PIPEFS_SUPER_MAGIC 0x67596969
184 #endif
185
186 /* Not exposed yet, defined at fs/ntfs/ntfs.h */
187 #ifndef NTFS_SB_MAGIC
188 #define NTFS_SB_MAGIC 0x5346544e
189 #endif
190
191 /* Not exposed yet, encoded literally in fs/ntfs3/super.c. */
192 #ifndef NTFS3_SUPER_MAGIC
193 #define NTFS3_SUPER_MAGIC 0x7366746e
194 #endif