Skip to contentSkip to conversation

overlayfs: move super block magic number to magic.h

PATCH In review Stephen Hemminger 2 participants 2 messages Nov 4, 2015 – Nov 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 overlayfs: move super block magic number to magic.h

The overlayfs file system is not recognized by programs like tail because the magic number is not in standard header location.

Move it so that the value will propagate on for the GNU library and utilities. Needs to go in the fstatfs manual page as well.

---
 fs/overlayfs/super.c       | 2 --
 include/uapi/linux/magic.h | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
fs/overlayfs/super.c +0 -2
index e38ee0f..a389675 100644
@@ -24,8 +24,6 @@ MODULE_AUTHOR("Miklos Szeredi <[email protected]>");
 MODULE_DESCRIPTION("Overlay filesystem");
 MODULE_LICENSE("GPL");
 
-#define OVERLAYFS_SUPER_MAGIC 0x794c7630
-
 struct ovl_config {
 	char *lowerdir;
 	char *upperdir;
include/uapi/linux/magic.h +1 -0
index accb036..63ccb03 100644
@@ -31,6 +31,7 @@
 #define PSTOREFS_MAGIC		0x6165676C
 #define EFIVARFS_MAGIC		0xde5e81e4
 #define HOSTFS_SUPER_MAGIC	0x00c0ffee
+#define OVERLAYFS_SUPER_MAGIC	0x794c7630
 
 #define MINIX_SUPER_MAGIC	0x137F		/* minix v1 fs, 14 char names */
 #define MINIX_SUPER_MAGIC2	0x138F		/* minix v1 fs, 30 char names */
Signature · 1 line
2.1.4
maintainer
#1 lore raw
Quoted 7 lines · Stephen Hemminger

The overlayfs file system is not recognized by programs like tail because the magic number is not in standard header location.

Move it so that the value will propagate on for the GNU library and utilities. Needs to go in the fstatfs manual page as well.

Thanks, pushed to

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next

Miklos