Searched refs:di_args (Results 1 – 1 of 1) sorted by relevance
2883 di_args = memdup_user(arg, sizeof(*di_args)); in btrfs_ioctl_dev_info()2884 if (IS_ERR(di_args)) in btrfs_ioctl_dev_info()2885 return PTR_ERR(di_args); in btrfs_ioctl_dev_info()2887 args.devid = di_args->devid; in btrfs_ioctl_dev_info()2889 args.uuid = di_args->uuid; in btrfs_ioctl_dev_info()2898 di_args->devid = dev->devid; in btrfs_ioctl_dev_info()2901 memcpy(di_args->uuid, dev->uuid, sizeof(di_args->uuid)); in btrfs_ioctl_dev_info()2904 strscpy(di_args->path, btrfs_dev_name(dev), sizeof(di_args->path)); in btrfs_ioctl_dev_info()2906 di_args->path[0] = '\0'; in btrfs_ioctl_dev_info()2910 if (ret == 0 && copy_to_user(arg, di_args, sizeof(*di_args))) in btrfs_ioctl_dev_info()[all …]