Unionfs: Include file
authorJosef "Jeff" Sipek <jsipek@cs.sunysb.edu>
Sun, 21 Jan 2007 23:47:43 +0000 (18:47 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 16 Aug 2014 02:24:10 +0000 (22:24 -0400)
Global include file - can be included from userspace by utilities.

Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: David Quigley <dquigley@fsl.cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
include/linux/union_fs.h [new file with mode: 0644]
include/uapi/linux/magic.h

diff --git a/include/linux/union_fs.h b/include/linux/union_fs.h
new file mode 100644 (file)
index 0000000..b724031
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef _LINUX_UNION_FS_H
+#define _LINUX_UNION_FS_H
+
+#define UNIONFS_VERSION  "2.0"
+/*
+ * DEFINITIONS FOR USER AND KERNEL CODE:
+ */
+# define UNIONFS_IOCTL_INCGEN          _IOR(0x15, 11, int)
+# define UNIONFS_IOCTL_QUERYFILE       _IOR(0x15, 15, int)
+
+/* We don't support normal remount, but unionctl uses it. */
+# define UNIONFS_REMOUNT_MAGIC         0x4a5a4380
+
+/* should be at least LAST_USED_UNIONFS_PERMISSION<<1 */
+#define MAY_NFSRO                      16
+
+#endif /* _LINUX_UNIONFS_H */
+
index 77c60311a6c6224b66e7c35a712d1b113258e27d..f8d0f5649e05615d10f538bb9f8ecc6741132168 100644 (file)
@@ -52,6 +52,8 @@
 #define REISER2FS_SUPER_MAGIC_STRING   "ReIsEr2Fs"
 #define REISER2FS_JR_SUPER_MAGIC_STRING        "ReIsEr3Fs"
 
+#define UNIONFS_SUPER_MAGIC 0xf15f083d
+
 #define SMB_SUPER_MAGIC                0x517B
 #define CGROUP_SUPER_MAGIC     0x27e0eb