Lines Matching refs:newroot
794 check_replication(nvlist_t *config, nvlist_t *newroot)
817 if ((nvlist_lookup_nvlist_array(newroot, ZPOOL_CONFIG_CHILDREN,
826 if (num_logs(newroot) == children) {
835 if ((new = get_replication(newroot, B_TRUE)) == NULL) {
1368 nvlist_t *newroot = NULL, **child;
1372 if ((newroot = construct_spec(argc, argv)) == NULL) {
1378 if (!flags.dryrun && make_disks(zhp, newroot) != 0) {
1379 nvlist_free(newroot);
1384 verify(nvlist_lookup_nvlist_array(newroot,
1396 nvlist_free(newroot);
1402 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
1403 nvlist_free(newroot);
1407 return (newroot);
1424 nvlist_t *newroot;
1433 if ((newroot = construct_spec(argc, argv)) == NULL)
1445 if (is_device_in_use(poolconfig, newroot, force, replacing, B_FALSE)) {
1446 nvlist_free(newroot);
1455 if (check_rep && check_replication(poolconfig, newroot) != 0) {
1456 nvlist_free(newroot);
1463 if (!dryrun && make_disks(zhp, newroot) != 0) {
1464 nvlist_free(newroot);
1468 return (newroot);