• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/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
82 * For any given vdev specification, we can have multiple errors. The
96 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
263 * Create a leaf vdev. Determine if this is a file or a device. If it's a
265 * leaf vdev are:
277 nvlist_t *vdev = NULL;
284 * Determine what type of vdev this is, and put the full path into
369 * acceptable to use. Construct the nvlist to describe this vdev. All
372 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAME, 0) == 0);
373 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0);
374 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0);
377 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK,
417 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift);
419 return (vdev);
436 * one general purpose vdev.
483 * an error message will be displayed for each self-inconsistent vdev.
511 * For separate logs we ignore the top level vdev replication
526 * This is a 'file' or 'disk' vdev.
535 * This is a mirror or RAID-Z vdev. Go through and make
540 * We also check that the size of each vdev (if it can
578 * If this is a replacing or spare vdev, then
579 * get the real first child of the vdev: do this
682 * vdev in 'rep'. Compare it to 'lastrep' to see if it is
789 * Check the replication level of the vdev spec against the current pool. Calls
834 * Get the replication level of the new vdev spec, reporting any
843 * Check to see if the new vdev spec matches the replication level of
853 "new vdev with different redundancy, %s "
865 "and new vdev is %s\n"),
871 "device parity and new vdev uses %llu\n"),
877 "%s and new vdev uses %llu-way %s\n"),
925 * Go through and find any whole disks in the vdev specification, labelling them
926 * as appropriate. When constructing the vdev spec, we were unable to open this
1440 * Construct a syntactically valid vdev specification,
1481 gettext("invalid vdev "
1493 gettext("invalid vdev "
1529 gettext("invalid vdev "
1541 gettext("invalid vdev "
1572 (void) fprintf(stderr, gettext("invalid vdev "
1582 (void) fprintf(stderr, gettext("invalid vdev "
1603 /* create a top-level vdev with children */
1650 * construct the appropriate nvlist describing the vdev.
1687 (void) fprintf(stderr, gettext("invalid vdev "
1688 "specification: at least one toplevel vdev must be "
1694 (void) fprintf(stderr, gettext("invalid vdev specification: "
1800 * Get and validate the contents of the given vdev specification. This ensures
1818 * Construct the vdev specification. If this is successful, we know
1852 * On pool create the new vdev spec must have one normal vdev.
1855 vdev_error(gettext("at least one general top-level vdev must "
1862 * Run through the vdev specification and label any whole disks found.