Lines Matching defs:new
522 * For the new spec, verifies that devices in mirrors and raidz are the
526 * levels, ignore any other potential problems in the new spec.
528 * Otherwise, make sure that the current spec (if there is one) and the new
792 * get_replication() to make sure the new spec is self-consistent. If the pool
801 replication_level_t *current = NULL, *new;
835 * Get the replication level of the new vdev spec, reporting any
838 if ((new = get_replication(newroot, B_TRUE)) == NULL) {
844 * Check to see if the new vdev spec matches the replication level of
849 if (strcmp(current->zprl_type, new->zprl_type) != 0) {
852 "and new vdev is %s\n"),
853 current->zprl_type, new->zprl_type);
855 } else if (current->zprl_parity != new->zprl_parity) {
858 "device parity and new vdev uses %llu\n"),
859 current->zprl_parity, new->zprl_parity);
861 } else if (current->zprl_children != new->zprl_children) {
864 "%s and new vdev uses %llu-way %s\n"),
866 new->zprl_children, new->zprl_type);
871 free(new);
1420 * new pool. The 'force' flag controls whether devices should be forcefully