Lines Matching refs:di_args
2909 struct btrfs_ioctl_dev_info_args *di_args; in btrfs_ioctl_dev_info() local
2913 di_args = memdup_user(arg, sizeof(*di_args)); in btrfs_ioctl_dev_info()
2914 if (IS_ERR(di_args)) in btrfs_ioctl_dev_info()
2915 return PTR_ERR(di_args); in btrfs_ioctl_dev_info()
2917 args.devid = di_args->devid; in btrfs_ioctl_dev_info()
2918 if (!btrfs_is_empty_uuid(di_args->uuid)) in btrfs_ioctl_dev_info()
2919 args.uuid = di_args->uuid; in btrfs_ioctl_dev_info()
2928 di_args->devid = dev->devid; in btrfs_ioctl_dev_info()
2929 di_args->bytes_used = btrfs_device_get_bytes_used(dev); in btrfs_ioctl_dev_info()
2930 di_args->total_bytes = btrfs_device_get_total_bytes(dev); in btrfs_ioctl_dev_info()
2931 memcpy(di_args->uuid, dev->uuid, sizeof(di_args->uuid)); in btrfs_ioctl_dev_info()
2932 memcpy(di_args->fsid, dev->fs_devices->fsid, BTRFS_UUID_SIZE); in btrfs_ioctl_dev_info()
2934 strscpy(di_args->path, btrfs_dev_name(dev), sizeof(di_args->path)); in btrfs_ioctl_dev_info()
2936 di_args->path[0] = '\0'; in btrfs_ioctl_dev_info()
2940 if (ret == 0 && copy_to_user(arg, di_args, sizeof(*di_args))) in btrfs_ioctl_dev_info()
2943 kfree(di_args); in btrfs_ioctl_dev_info()