Lines Matching defs:vdev

204 		return (gettext("\tadd [-fn] <pool> <vdev> ...\n"));
213 "\t [-m mountpoint] [-R root] <pool> <vdev> ...\n"));
236 return (gettext("\tlabelclear [-f] <vdev>\n"));
481 * zpool add [-fn] <pool> <vdev> ...
528 (void) fprintf(stderr, gettext("missing vdev specification\n"));
588 * zpool remove <pool> <vdev> ...
590 * Removes the given vdev from the pool. Currently, this supports removing
627 * zpool labelclear [-f] <vdev>
632 * Verifies that the vdev is not active and zeros out the label information
638 char vdev[MAXPATHLEN];
663 /* get vdev name */
665 (void) fprintf(stderr, gettext("missing vdev name\n"));
675 * Otherwise if the provided vdev name doesn't point to a file,
678 (void) strlcpy(vdev, argv[0], sizeof (vdev));
679 if (vdev[0] != '/' && stat(vdev, &st) != 0) {
682 (void) snprintf(vdev, sizeof (vdev), "%s/%s",
686 (void) strlcat(vdev, "s0", sizeof (vdev));
687 if (stat(vdev, &st) != 0) {
695 if ((fd = open(vdev, O_RDWR)) < 0) {
697 vdev, strerror(errno));
703 gettext("failed to read label from %s\n"), vdev);
711 gettext("failed to check state for %s\n"), vdev);
725 vdev, zpool_pool_state_to_name(state), name);
735 vdev, name);
745 vdev, name);
759 gettext("failed to clear label for %s\n"), vdev);
785 * Creates the named pool according to the given vdev specification. The
786 * bulk of the vdev processing is done in get_vdev_spec() in zpool_vdev.c. Once
906 (void) fprintf(stderr, gettext("missing vdev specification\n"));
932 (void) fprintf(stderr, gettext("invalid vdev "
933 "specification: at least one toplevel vdev must be "
1227 * Given a vdev configuration, determine the maximum width needed for the device
1567 * works because only the top level vdev is marked "is_log"
2337 * Print out all the statistics for the given vdev. This can either be the
2646 * creation/destruction as well as vdev configuration changes. The bulk of this
3365 * per top-level vdev mirror. The newly split pool is left in an exported
4913 (void) printf(gettext(" 28 Multiple vdev replacements\n"));