search for: split_ext

Displaying 3 results from an estimated 3 matches for "split_ext".

Did you mean: splitext
2020 Feb 10
1
[nbdkit PATCH] split: Add support for .extents
...dkit_add_extent (extents, offset + file->offset, pos - offset, + 0 /* allocated data */) == -1) + return -1; + r += pos - offset; + if (req_one) + break; + } + + offset = pos; + } while (offset < end); + + return r; +} + +static int +split_extents (void *handle, uint32_t count, uint64_t offset, + uint32_t flags, struct nbdkit_extents *extents) +{ + struct handle *h = handle; + const bool req_one = flags & NBDKIT_FLAG_REQ_ONE; + + while (count > 0) { + struct file *file = get_file (h, offset); + uint64_t foff...
2011 Jan 06
3
Offline Deduplication for Btrfs V2
Just a quick update, I''ve dropped the hashing stuff in favor of doing a memcmp in the kernel to make sure the data is still the same. The thing that takes a while is reading the data up from disk, so doing a memcmp of the entire buffer isn''t that big of a deal, not to mention there''s a possiblity for malicious users if there is a problem with the hashing algorithms we
2011 Jan 05
52
Offline Deduplication for Btrfs
Here are patches to do offline deduplication for Btrfs. It works well for the cases it''s expected to, I''m looking for feedback on the ioctl interface and such, I''m well aware there are missing features for the userspace app (like being able to set a different blocksize). If this interface is acceptable I will flesh out the userspace app a little more, but I believe the