search for: loff2

Displaying 2 results from an estimated 2 matches for "loff2".

Did you mean: soff2
2013 Jun 26
6
[PROGS PATCH] Import btrfs-extent-same
...nt */ + uint16_t dest_count; /* in - total elements in info array */ + uint16_t reserved1; /* out - number of files that got deduped */ + uint32_t reserved2; + struct btrfs_ioctl_same_extent_info info[0]; +}; + +static void usage(const char *prog) +{ + printf("Usage: %s len file1 loff1 file2 loff2\n", prog); +} + +int main(int argc, char **argv) +{ + int ret, src_fd, i, numfiles; + char *srcf, *destf; + struct btrfs_ioctl_same_args *same; + struct btrfs_ioctl_same_extent_info *info; + unsigned long long bytes = 0ULL; + + if (argc < 6 || (argc % 2)) { + usage(argv[0]); + return 1; +...
2013 Aug 06
6
[PATCH 0/4] btrfs: out-of-band (aka offline) dedupe v4
Hi, The following series of patches implements in btrfs an ioctl to do out-of-band deduplication of file extents. To be clear, this means that the file system is mounted and running, but the dedupe is not done during file writes, but after the fact when some userspace software initiates a dedupe. The primary patch is loosely based off of one sent by Josef Bacik back in January, 2011.