Lines Matching refs:vdev

46  * the same level as the root of the vdev tree.
51 * 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.
566 * For separate logs we ignore the top level vdev replication
578 * This is a 'file' or 'disk' vdev.
587 * This is a mirror or RAID-Z vdev. Go through and make
592 * We also check that the size of each vdev (if it can
629 * If this is a replacing or spare vdev, then
630 * get the real first child of the vdev.
731 * vdev in 'rep'. Compare it to 'lastrep' to see if its
787 * Check the replication level of the vdev spec against the current pool. Calls
831 * Get the replication level of the new vdev spec, reporting any
840 * Check to see if the new vdev spec matches the replication level of
848 "and new vdev is %s\n"),
854 "device parity and new vdev uses %llu\n"),
860 "%s and new vdev uses %llu-way %s\n"),
875 * Go through and find any whole disks in the vdev specification, labelling them
876 * as appropriate. When constructing the vdev spec, we were unable to open this
1154 * Construct a syntactically valid vdev specification,
1192 gettext("invalid vdev "
1203 gettext("invalid vdev "
1222 gettext("invalid vdev "
1233 gettext("invalid vdev "
1256 (void) fprintf(stderr, gettext("invalid vdev "
1263 (void) fprintf(stderr, gettext("invalid vdev "
1303 * construct the appropriate nvlist describing the vdev.
1321 (void) fprintf(stderr, gettext("invalid vdev "
1322 "specification: at least one toplevel vdev must be "
1328 (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.