• Home
  • Raw
  • Download

Lines Matching refs:vol_args

1487 	struct btrfs_ioctl_vol_args *vol_args;  in btrfs_ioctl_resize()  local
1510 vol_args = memdup_user(arg, sizeof(*vol_args)); in btrfs_ioctl_resize()
1511 if (IS_ERR(vol_args)) { in btrfs_ioctl_resize()
1512 ret = PTR_ERR(vol_args); in btrfs_ioctl_resize()
1516 vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; in btrfs_ioctl_resize()
1518 sizestr = vol_args->name; in btrfs_ioctl_resize()
1523 devstr = vol_args->name; in btrfs_ioctl_resize()
1616 kfree(vol_args); in btrfs_ioctl_resize()
1689 struct btrfs_ioctl_vol_args *vol_args; in btrfs_ioctl_snap_create() local
1695 vol_args = memdup_user(arg, sizeof(*vol_args)); in btrfs_ioctl_snap_create()
1696 if (IS_ERR(vol_args)) in btrfs_ioctl_snap_create()
1697 return PTR_ERR(vol_args); in btrfs_ioctl_snap_create()
1698 vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; in btrfs_ioctl_snap_create()
1700 ret = btrfs_ioctl_snap_create_transid(file, vol_args->name, in btrfs_ioctl_snap_create()
1701 vol_args->fd, subvol, in btrfs_ioctl_snap_create()
1704 kfree(vol_args); in btrfs_ioctl_snap_create()
1711 struct btrfs_ioctl_vol_args_v2 *vol_args; in btrfs_ioctl_snap_create_v2() local
1721 vol_args = memdup_user(arg, sizeof(*vol_args)); in btrfs_ioctl_snap_create_v2()
1722 if (IS_ERR(vol_args)) in btrfs_ioctl_snap_create_v2()
1723 return PTR_ERR(vol_args); in btrfs_ioctl_snap_create_v2()
1724 vol_args->name[BTRFS_SUBVOL_NAME_MAX] = '\0'; in btrfs_ioctl_snap_create_v2()
1726 if (vol_args->flags & in btrfs_ioctl_snap_create_v2()
1733 if (vol_args->flags & BTRFS_SUBVOL_CREATE_ASYNC) in btrfs_ioctl_snap_create_v2()
1735 if (vol_args->flags & BTRFS_SUBVOL_RDONLY) in btrfs_ioctl_snap_create_v2()
1737 if (vol_args->flags & BTRFS_SUBVOL_QGROUP_INHERIT) { in btrfs_ioctl_snap_create_v2()
1738 if (vol_args->size > PAGE_CACHE_SIZE) { in btrfs_ioctl_snap_create_v2()
1742 inherit = memdup_user(vol_args->qgroup_inherit, vol_args->size); in btrfs_ioctl_snap_create_v2()
1749 ret = btrfs_ioctl_snap_create_transid(file, vol_args->name, in btrfs_ioctl_snap_create_v2()
1750 vol_args->fd, subvol, ptr, in btrfs_ioctl_snap_create_v2()
1764 kfree(vol_args); in btrfs_ioctl_snap_create_v2()
2372 struct btrfs_ioctl_vol_args *vol_args; in btrfs_ioctl_snap_destroy() local
2384 vol_args = memdup_user(arg, sizeof(*vol_args)); in btrfs_ioctl_snap_destroy()
2385 if (IS_ERR(vol_args)) in btrfs_ioctl_snap_destroy()
2386 return PTR_ERR(vol_args); in btrfs_ioctl_snap_destroy()
2388 vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; in btrfs_ioctl_snap_destroy()
2389 namelen = strlen(vol_args->name); in btrfs_ioctl_snap_destroy()
2390 if (strchr(vol_args->name, '/') || in btrfs_ioctl_snap_destroy()
2391 strncmp(vol_args->name, "..", namelen) == 0) { in btrfs_ioctl_snap_destroy()
2404 dentry = lookup_one_len(vol_args->name, parent, namelen); in btrfs_ioctl_snap_destroy()
2596 kfree(vol_args); in btrfs_ioctl_snap_destroy()
2671 struct btrfs_ioctl_vol_args *vol_args; in btrfs_ioctl_add_dev() local
2683 vol_args = memdup_user(arg, sizeof(*vol_args)); in btrfs_ioctl_add_dev()
2684 if (IS_ERR(vol_args)) { in btrfs_ioctl_add_dev()
2685 ret = PTR_ERR(vol_args); in btrfs_ioctl_add_dev()
2689 vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; in btrfs_ioctl_add_dev()
2690 ret = btrfs_init_new_device(root, vol_args->name); in btrfs_ioctl_add_dev()
2693 btrfs_info(root->fs_info, "disk added %s",vol_args->name); in btrfs_ioctl_add_dev()
2695 kfree(vol_args); in btrfs_ioctl_add_dev()
2705 struct btrfs_ioctl_vol_args *vol_args; in btrfs_ioctl_rm_dev() local
2715 vol_args = memdup_user(arg, sizeof(*vol_args)); in btrfs_ioctl_rm_dev()
2716 if (IS_ERR(vol_args)) { in btrfs_ioctl_rm_dev()
2717 ret = PTR_ERR(vol_args); in btrfs_ioctl_rm_dev()
2721 vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; in btrfs_ioctl_rm_dev()
2730 ret = btrfs_rm_device(root, vol_args->name); in btrfs_ioctl_rm_dev()
2735 btrfs_info(root->fs_info, "disk deleted %s",vol_args->name); in btrfs_ioctl_rm_dev()
2738 kfree(vol_args); in btrfs_ioctl_rm_dev()