Displaying 2 results from an estimated 2 matches for "extent_same".
2013 Jun 26
6
[PROGS PATCH] Import btrfs-extent-same
...nclude <fcntl.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stddef.h>
+#include <errno.h>
+#include <string.h>
+#include <sys/ioctl.h>
+
+#define BTRFS_IOCTL_MAGIC 0x94
+
+#define BTRFS_IOC_FILE_EXTENT_SAME _IOWR(BTRFS_IOCTL_MAGIC, 54, \
+ struct btrfs_ioctl_same_args)
+
+#define BTRFS_SAME_DATA_DIFFERS 1
+/* For extent-same ioctl */
+struct btrfs_ioctl_same_extent_info {
+ int64_t fd; /* in - destination file */
+ uint64_t logical_offset; /* in - start of extent in destination */
+ uint64_t by...
2013 Aug 06
6
[PATCH 0/4] btrfs: out-of-band (aka offline) dedupe v4
...this is to maintain
- check that we don''t dedupe files with different checksumming states
(compare BTRFS_INODE_NODATASUM flags)
- get and maintain write access to the mount during the extent same
operation (mount_want_write())
- allocate our read buffers up front in btrfs_ioctl_file_extent_same() and
pass them through for re-use on every call to btrfs_extent_same(). (thanks
to David Sterba <dsterba@suse.cz> for reporting this
- As the read buffers could possibly be up to 1MB (depending on user
request), we now conditionally vmalloc them.
- removed redundant check for same in...