[CRIU] [PATCH 1/4] types: Gather filesystem magics in types.h
Cyrill Gorcunov
gorcunov at openvz.org
Tue Apr 24 09:15:30 EDT 2012
The ANON_INODE_FS_MAGIC will be needed for
inotify/eventfd/eventpoll.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/image.h | 2 --
include/types.h | 9 +++++++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/include/image.h b/include/image.h
index 71bccd1..8d1c434 100644
--- a/include/image.h
+++ b/include/image.h
@@ -33,8 +33,6 @@
#define REMAP_FPATH_MAGIC 0x59133954 /* Vologda */
#define GHOST_FILE_MAGIC 0x52583605 /* Oryol */
-#define PIPEFS_MAGIC 0x50495045
-
enum fd_types {
FDINFO_UND,
FDINFO_REG,
diff --git a/include/types.h b/include/types.h
index 36d5a8f..b60eddf 100644
--- a/include/types.h
+++ b/include/types.h
@@ -204,4 +204,13 @@ enum kcmp_type {
# define SCM_MAX_FD 253
#endif
+/* Filesystem magics */
+#ifndef PIPEFS_MAGIC
+#define PIPEFS_MAGIC 0x50495045
+#endif
+
+#ifndef ANON_INODE_FS_MAGIC
+#define ANON_INODE_FS_MAGIC 0x09041934
+#endif
+
#endif /* CR_TYPES_H_ */
--
1.7.7.6
More information about the CRIU
mailing list