Skip to contentSkip to conversation

linux/magic.h: feature ramfs magic

PATCH New maximilian attems 1 participant 1 message Jul 3, 2009 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/magic.h: feature ramfs magic

initramfs userspace likes to use that magic number.

---
 fs/ramfs/inode.c      |    4 +---
 include/linux/magic.h |    1 +
 2 files changed, 2 insertions(+), 3 deletions(-)
fs/ramfs/inode.c +1 -3
index 0ff7566..875126d 100644
@@ -34,12 +34,10 @@
 #include <linux/ramfs.h>
 #include <linux/sched.h>
 #include <linux/parser.h>
+#include <linux/magic.h>
 #include <asm/uaccess.h>
 #include "internal.h"
 
-/* some random number */
-#define RAMFS_MAGIC	0x858458f6
-
 #define RAMFS_DEFAULT_MODE	0755
 
 static const struct super_operations ramfs_ops;
include/linux/magic.h +1 -0
index 1923327..b10c896 100644
@@ -12,6 +12,7 @@
 #define SYSFS_MAGIC		0x62656572
 #define SECURITYFS_MAGIC	0x73636673
 #define SELINUX_MAGIC		0xf97cff8c
+#define RAMFS_MAGIC		0x858458f6	/* some random number */
 #define TMPFS_MAGIC		0x01021994
 #define SQUASHFS_MAGIC		0x73717368
 #define EFS_SUPER_MAGIC		0x414A53
Signature · 1 line
1.5.6.5