Skip to content

Commit c086df4

Browse files
jtlaytonMiklos Szeredi
authored andcommitted
fuse: move FUSE_SUPER_MAGIC definition to magic.h
...to help userland apps that need to identify FUSE mounts. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent a679a61 commit c086df4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/fuse/inode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/exportfs.h>
2424
#include <linux/posix_acl.h>
2525
#include <linux/pid_namespace.h>
26+
#include <uapi/linux/magic.h>
2627

2728
MODULE_AUTHOR("Miklos Szeredi <[email protected]>");
2829
MODULE_DESCRIPTION("Filesystem in Userspace");
@@ -50,8 +51,6 @@ MODULE_PARM_DESC(max_user_congthresh,
5051
"Global limit for the maximum congestion threshold an "
5152
"unprivileged user can set");
5253

53-
#define FUSE_SUPER_MAGIC 0x65735546
54-
5554
#define FUSE_DEFAULT_BLKSIZE 512
5655

5756
/** Maximum number of outstanding background requests */

include/uapi/linux/magic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#define EFIVARFS_MAGIC 0xde5e81e4
3737
#define HOSTFS_SUPER_MAGIC 0x00c0ffee
3838
#define OVERLAYFS_SUPER_MAGIC 0x794c7630
39+
#define FUSE_SUPER_MAGIC 0x65735546
3940

4041
#define MINIX_SUPER_MAGIC 0x137F /* minix v1 fs, 14 char names */
4142
#define MINIX_SUPER_MAGIC2 0x138F /* minix v1 fs, 30 char names */

0 commit comments

Comments
 (0)