Lines Matching refs:vdev

48  * the same level as the root of the vdev tree.
53 * 1. Construct the vdev specification. Performs syntax validation and
85 * For any given vdev specification, we can have multiple errors. The
99 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
381 * Create a leaf vdev. Determine if this is a file or a device. If it's a
383 * leaf vdev are:
394 nvlist_t *vdev = NULL;
399 * Determine what type of vdev this is, and put the full path into
467 * acceptable to use. Construct the nvlist to describe this vdev. All
470 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAME, 0) == 0);
471 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0);
472 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0);
473 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_IS_LOG, is_log) == 0);
475 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK,
492 nvlist_free(vdev);
500 verify(nvlist_add_string(vdev,
513 return (vdev);
540 * an error message will be displayed for each self-inconsistent vdev.
567 * For separate logs we ignore the top level vdev replication
579 * This is a 'file' or 'disk' vdev.
588 * This is a mirror or RAID-Z vdev. Go through and make
593 * We also check that the size of each vdev (if it can
630 * If this is a replacing or spare vdev, then
631 * get the real first child of the vdev.
732 * vdev in 'rep'. Compare it to 'lastrep' to see if its
788 * Check the replication level of the vdev spec against the current pool. Calls
832 * Get the replication level of the new vdev spec, reporting any
841 * Check to see if the new vdev spec matches the replication level of
849 "and new vdev is %s\n"),
855 "device parity and new vdev uses %llu\n"),
861 "%s and new vdev uses %llu-way %s\n"),
876 * Go through and find any whole disks in the vdev specification, labelling them
877 * as appropriate. When constructing the vdev spec, we were unable to open this
1155 * Construct a syntactically valid vdev specification,
1193 gettext("invalid vdev "
1204 gettext("invalid vdev "
1223 gettext("invalid vdev "
1234 gettext("invalid vdev "
1257 (void) fprintf(stderr, gettext("invalid vdev "
1264 (void) fprintf(stderr, gettext("invalid vdev "
1304 * construct the appropriate nvlist describing the vdev.
1322 (void) fprintf(stderr, gettext("invalid vdev "
1323 "specification: at least one toplevel vdev must be "
1329 (void) fprintf(stderr, gettext("invalid vdev specification: "
1411 * Get and validate the contents of the given vdev specification. This ensures
1429 * Construct the vdev specification. If this is successful, we know
1461 * Run through the vdev specification and label any whole disks found.