Displaying 3 results from an estimated 3 matches for "btrfs_ioctl_disk_info_args".
2010 Sep 28
18
[PATCH] Btrfs: add a disk info ioctl to get the disks attached to a filesystem
...+), 0 deletions(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 9254b3d..f59b0bc 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1957,6 +1957,68 @@ out:
return ret;
}
+static noinline long btrfs_ioctl_disk_info(struct btrfs_root *root,
+ void __user *arg)
+{
+ struct btrfs_ioctl_disk_info_args di_args;
+ u64 *user_dest;
+ u64 *dest = NULL;
+ struct btrfs_device *device;
+ struct list_head *devices;
+ int alloc_size = 0;
+ int ret = 0;
+
+ if (copy_from_user(&di_args,
+ (struct btrfs_ioctl_disk_info_args __user *)arg,
+ sizeof(di_args)))
+ return -EFAULT;
+
+ mutex_lock(&am...
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