linux/magic.h: feature ramfs magic
PATCH 1/1 linux/magic.h: feature ramfs magic
initramfs userspace likes to use that magic number.
Cc Hugh Dickins <[email protected]>
Signed-off-by maximilian attems <[email protected]>
--- fs/ramfs/inode.c | 4 +--- include/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-)
fs/ramfs/inode.c +1 -3
@@ -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 0755static const struct super_operations ramfs_ops;
include/linux/magic.h +1 -0
@@ -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