• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/

Lines Matching defs:vdev

49  * the same level as the root of the vdev tree.
54 * 1. Construct the vdev specification. Performs syntax validation and
86 * For any given vdev specification, we can have multiple errors. The
100 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
409 * Create a leaf vdev. Determine if this is a file or a device. If it's a
411 * leaf vdev are:
422 nvlist_t *vdev = NULL;
427 * Determine what type of vdev this is, and put the full path into
505 * acceptable to use. Construct the nvlist to describe this vdev. All
508 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAME, 0) == 0);
509 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0);
510 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0);
511 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_IS_LOG, is_log) == 0);
513 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_ALLOCATION_BIAS,
516 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK,
534 nvlist_free(vdev);
542 verify(nvlist_add_string(vdev,
556 return (vdev);
573 * one general purpose vdev.
599 * an error message will be displayed for each self-inconsistent vdev.
627 * For separate logs we ignore the top level vdev replication
639 * This is a 'file' or 'disk' vdev.
648 * This is a mirror or RAID-Z vdev. Go through and make
653 * We also check that the size of each vdev (if it can
691 * If this is a replacing or spare vdev, then
692 * get the real first child of the vdev.
714 /* We have a replacing vdev with
811 * vdev in 'rep'. Compare it to 'lastrep' to see if it is
895 * Check the replication level of the vdev spec against the current pool. Calls
940 * Get the replication level of the new vdev spec, reporting any
949 * Check to see if the new vdev spec matches the replication level of
959 "new vdev with different redundancy, %s "
971 "and new vdev is %s\n"),
977 "device parity and new vdev uses %llu\n"),
983 "%s and new vdev uses %llu-way %s\n"),
999 * Go through and find any whole disks in the vdev specification, labelling them
1000 * as appropriate. When constructing the vdev spec, we were unable to open this
1101 /* illumos kernel does not support booting from multi-vdev pools. */
1105 "can not have more than one vdev\n"));
1321 * Construct a syntactically valid vdev specification,
1359 gettext("invalid vdev "
1370 gettext("invalid vdev "
1409 gettext("invalid vdev "
1420 gettext("invalid vdev "
1444 (void) fprintf(stderr, gettext("invalid vdev "
1451 (void) fprintf(stderr, gettext("invalid vdev "
1469 /* create a top-level vdev with children */
1506 * construct the appropriate nvlist describing the vdev.
1534 (void) fprintf(stderr, gettext("invalid vdev "
1535 "specification: at least one toplevel vdev must be "
1541 (void) fprintf(stderr, gettext("invalid vdev specification: "
1658 * Get and validate the contents of the given vdev specification. This ensures
1677 * Construct the vdev specification. If this is successful, we know
1710 * On pool create the new vdev spec must have one normal vdev.
1713 vdev_error(gettext("at least one general top-level vdev must "
1720 * Run through the vdev specification and label any whole disks found.