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