Lines Matching defs:vdev
48 * the same level as the root of the vdev tree.
53 * 1. Construct the vdev specification. Performs syntax validation and
87 * For any given vdev specification, we can have multiple errors. The
101 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
383 * Create a leaf vdev. Determine if this is a file or a device. If it's a
385 * leaf vdev are:
396 nvlist_t *vdev = NULL;
401 * Determine what type of vdev this is, and put the full path into
469 * acceptable to use. Construct the nvlist to describe this vdev. All
472 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAME, 0) == 0);
473 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0);
474 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0);
475 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_IS_LOG, is_log) == 0);
477 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK,
494 nvlist_free(vdev);
502 verify(nvlist_add_string(vdev,
515 return (vdev);
542 * an error message will be displayed for each self-inconsistent vdev.
570 * For separate logs we ignore the top level vdev replication
582 * This is a 'file' or 'disk' vdev.
591 * This is a mirror or RAID-Z vdev. Go through and make
596 * We also check that the size of each vdev (if it can
633 * If this is a replacing or spare vdev, then
634 * get the real first child of the vdev.
735 * vdev in 'rep'. Compare it to 'lastrep' to see if its
791 * Check the replication level of the vdev spec against the current pool. Calls
835 * Get the replication level of the new vdev spec, reporting any
844 * Check to see if the new vdev spec matches the replication level of
852 "and new vdev is %s\n"),
858 "device parity and new vdev uses %llu\n"),
864 "%s and new vdev uses %llu-way %s\n"),
879 * Go through and find any whole disks in the vdev specification, labelling them
880 * as appropriate. When constructing the vdev spec, we were unable to open this
1158 * Construct a syntactically valid vdev specification,
1196 gettext("invalid vdev "
1207 gettext("invalid vdev "
1226 gettext("invalid vdev "
1237 gettext("invalid vdev "
1260 (void) fprintf(stderr, gettext("invalid vdev "
1267 (void) fprintf(stderr, gettext("invalid vdev "
1307 * construct the appropriate nvlist describing the vdev.
1325 (void) fprintf(stderr, gettext("invalid vdev "
1326 "specification: at least one toplevel vdev must be "
1332 (void) fprintf(stderr, gettext("invalid vdev specification: "
1414 * Get and validate the contents of the given vdev specification. This ensures
1432 * Construct the vdev specification. If this is successful, we know
1464 * Run through the vdev specification and label any whole disks found.