Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1262523 > unrolled thread

[PATCH] overlayfs: move super block magic number to magic.h

Started byStephen Hemminger <stephen@networkplumber.org>
First post2015-11-04 20:00 +0100
Last post2015-11-10 17:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] overlayfs: move super block magic number to magic.h Stephen Hemminger <stephen@networkplumber.org> - 2015-11-04 20:00 +0100
    Re: [PATCH] overlayfs: move super block magic number to magic.h Miklos Szeredi <miklos@szeredi.hu> - 2015-11-10 17:20 +0100

#1262523 — [PATCH] overlayfs: move super block magic number to magic.h

FromStephen Hemminger <stephen@networkplumber.org>
Date2015-11-04 20:00 +0100
Subject[PATCH] overlayfs: move super block magic number to magic.h
Message-ID<qrbrQ-4b8-17@gated-at.bofh.it>
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.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 fs/overlayfs/super.c       | 2 --
 include/uapi/linux/magic.h | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index e38ee0f..a389675 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -24,8 +24,6 @@ MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>");
 MODULE_DESCRIPTION("Overlay filesystem");
 MODULE_LICENSE("GPL");
 
-#define OVERLAYFS_SUPER_MAGIC 0x794c7630
-
 struct ovl_config {
 	char *lowerdir;
 	char *upperdir;
diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h
index accb036..63ccb03 100644
--- a/include/uapi/linux/magic.h
+++ b/include/uapi/linux/magic.h
@@ -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 */
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1266618

FromMiklos Szeredi <miklos@szeredi.hu>
Date2015-11-10 17:20 +0100
Message-ID<qtjOh-7kQ-5@gated-at.bofh.it>
In reply to#1262523
On Wed, Nov 4, 2015 at 7:59 PM, Stephen Hemminger
<stephen@networkplumber.org> wrote:
> 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.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

Thanks, pushed to

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

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web