[Ocfs2-tools-devel] [PATCH 43/44] ocfs2: Add the REFLINK ioctl(2) definition.
Tao Ma
tao.ma at oracle.com
Mon Dec 28 01:01:28 PST 2009
From: Joel Becker <joel.becker at oracle.com>
This is an ocfs2-specific ioctl(2) right now.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
---
include/ocfs2-kernel/ocfs2_fs.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/ocfs2-kernel/ocfs2_fs.h b/include/ocfs2-kernel/ocfs2_fs.h
index 959f874..8208940 100644
--- a/include/ocfs2-kernel/ocfs2_fs.h
+++ b/include/ocfs2-kernel/ocfs2_fs.h
@@ -297,6 +297,15 @@ struct ocfs2_new_group_input {
#define OCFS2_IOC_GROUP_ADD _IOW('o', 2,struct ocfs2_new_group_input)
#define OCFS2_IOC_GROUP_ADD64 _IOW('o', 3,struct ocfs2_new_group_input)
+/* Used to pass 2 file names to reflink. */
+struct reflink_arguments {
+ __u64 old_path;
+ __u64 new_path;
+ __u64 preserve;
+};
+#define OCFS2_IOC_REFLINK _IOW('o', 4, struct reflink_arguments)
+
+
/*
* Journal Flags (ocfs2_dinode.id1.journal1.i_flags)
*/
--
1.5.5
More information about the Ocfs2-tools-devel
mailing list