Lines Matching refs:newroot
797 check_replication(nvlist_t *config, nvlist_t *newroot) in check_replication() argument
820 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN, in check_replication()
829 if (num_logs(newroot) == children) { in check_replication()
838 if ((new = get_replication(newroot, B_TRUE)) == NULL) { in check_replication()
1371 nvlist_t *newroot = NULL, **child; in split_mirror_vdev() local
1375 if ((newroot = construct_spec(argc, argv)) == NULL) { in split_mirror_vdev()
1381 if (!flags.dryrun && make_disks(zhp, newroot) != 0) { in split_mirror_vdev()
1382 nvlist_free(newroot); in split_mirror_vdev()
1387 verify(nvlist_lookup_nvlist_array(newroot, in split_mirror_vdev()
1399 nvlist_free(newroot); in split_mirror_vdev()
1405 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) { in split_mirror_vdev()
1406 nvlist_free(newroot); in split_mirror_vdev()
1410 return (newroot); in split_mirror_vdev()
1427 nvlist_t *newroot; in make_root_vdev() local
1436 if ((newroot = construct_spec(argc, argv)) == NULL) in make_root_vdev()
1448 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) { in make_root_vdev()
1449 nvlist_free(newroot); in make_root_vdev()
1458 if (check_rep && check_replication(poolconfig, newroot) != 0) { in make_root_vdev()
1459 nvlist_free(newroot); in make_root_vdev()
1466 if (!dryrun && make_disks(zhp, newroot) != 0) { in make_root_vdev()
1467 nvlist_free(newroot); in make_root_vdev()
1471 return (newroot); in make_root_vdev()