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
91 * For any given vdev specification, we can have multiple errors. The
105 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
426 * Create a leaf vdev. Determine if this is a file or a device. If it's a
428 * leaf vdev are:
439 nvlist_t *vdev = NULL;
444 * Determine what type of vdev this is, and put the full path into
522 * acceptable to use. Construct the nvlist to describe this vdev. All
525 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAME, 0) == 0);
526 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0);
527 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0);
528 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_IS_LOG, is_log) == 0);
530 verify(nvlist_add_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK,
548 nvlist_free(vdev);
556 verify(nvlist_add_string(vdev,
570 return (vdev);
597 * an error message will be displayed for each self-inconsistent vdev.
624 * For separate logs we ignore the top level vdev replication
636 * This is a 'file' or 'disk' vdev.
645 * This is a mirror or RAID-Z vdev. Go through and make
650 * We also check that the size of each vdev (if it can
688 * If this is a replacing or spare vdev, then
689 * get the real first child of the vdev.
793 * vdev in 'rep'. Compare it to 'lastrep' to see if its
849 * Check the replication level of the vdev spec against the current pool. Calls
893 * Get the replication level of the new vdev spec, reporting any
902 * Check to see if the new vdev spec matches the replication level of
910 "and new vdev is %s\n"),
916 "device parity and new vdev uses %llu\n"),
922 "%s and new vdev uses %llu-way %s\n"),
938 * Go through and find any whole disks in the vdev specification, labelling them
939 * as appropriate. When constructing the vdev spec, we were unable to open this
1220 * Construct a syntactically valid vdev specification,
1258 gettext("invalid vdev "
1269 gettext("invalid vdev "
1288 gettext("invalid vdev "
1299 gettext("invalid vdev "
1322 (void) fprintf(stderr, gettext("invalid vdev "
1329 (void) fprintf(stderr, gettext("invalid vdev "
1369 * construct the appropriate nvlist describing the vdev.
1387 (void) fprintf(stderr, gettext("invalid vdev "
1388 "specification: at least one toplevel vdev must be "
1394 (void) fprintf(stderr, gettext("invalid vdev specification: "
1478 * Get and validate the contents of the given vdev specification. This ensures
1496 * Construct the vdev specification. If this is successful, we know
1529 * Run through the vdev specification and label any whole disks found.