summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2_fs.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-09-21 11:25:14 +0800
committerJoel Becker <joel.becker@oracle.com>2009-09-22 20:09:51 -0700
commitbd50873dc725a9fa72592ecc986c58805e823051 (patch)
tree8d2d4d514f73b6425bf0bf5bd1806949b84a2489 /fs/ocfs2/ocfs2_fs.h
parent64871b8d62570fabec3b0959d494f8e0b87f5c4b (diff)
downloadlinux-stable-bd50873dc725a9fa72592ecc986c58805e823051.tar.gz
linux-stable-bd50873dc725a9fa72592ecc986c58805e823051.tar.bz2
linux-stable-bd50873dc725a9fa72592ecc986c58805e823051.zip
ocfs2: Add ioctl for reflink.
The ioctl will take 3 parameters: old_path, new_path and preserve and call vfs_reflink. It is useful when we backport reflink features to old kernels. Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2_fs.h')
-rw-r--r--fs/ocfs2/ocfs2_fs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h
index 4a4565b7bc14..e9431e4a5e7c 100644
--- a/fs/ocfs2/ocfs2_fs.h
+++ b/fs/ocfs2/ocfs2_fs.h
@@ -301,6 +301,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)
*/