Lines Matching defs:new
426 * For the new spec, verifies that devices in mirrors and raidz are the
430 * levels, ignore any other potential problems in the new spec.
432 * Otherwise, make sure that the current spec (if there is one) and the new
435 * If there is no current spec (create), make sure new spec has at least
790 * get_replication() to make sure the new spec is self-consistent. If the pool
799 replication_level_t *current = NULL, *new;
834 * Get the replication level of the new vdev spec, reporting any
837 if ((new = get_replication(newroot, B_TRUE)) == NULL) {
843 * Check to see if the new vdev spec matches the replication level of
848 if (is_raidz_mirror(current, new, &raidz, &mirror) ||
849 is_raidz_mirror(new, current, &raidz, &mirror)) {
853 "new vdev with different redundancy, %s "
862 } else if (strcmp(current->zprl_type, new->zprl_type) != 0) {
865 "and new vdev is %s\n"),
866 current->zprl_type, new->zprl_type);
868 } else if (current->zprl_parity != new->zprl_parity) {
871 "device parity and new vdev uses %llu\n"),
872 current->zprl_parity, new->zprl_parity);
874 } else if (current->zprl_children != new->zprl_children) {
877 "%s and new vdev uses %llu-way %s\n"),
879 new->zprl_children, new->zprl_type);
884 free(new);
1016 * and then block until udev creates the new link.
1806 * new pool. The 'force' flag controls whether devices should be forcefully
1852 * On pool create the new vdev spec must have one normal vdev.