From 9a9b24fca00b57400a70edc171c5082fc06b1d31 Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Wed, 7 Jun 2000 04:09:55 +0000 Subject: [PATCH] vinum_start: Set the revive blocksize correctly. checkparity: Allow the -v flag to display progress. --- sbin/vinum/commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index b10b97e9f4f3..3b87ef316b6d 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -622,7 +622,7 @@ vinum_start(int argc, char *argv[], char *arg0[]) SSize <<= DEV_BSHIFT; message->blocksize = SSize; } else - message->blocksize = 0; + message->blocksize = DEFAULT_REVIVE_BLOCKSIZE; ioctl(superdev, VINUM_SETSTATE, message); if (reply.error != 0) { if (reply.error == EAGAIN) /* we're reviving */ @@ -2355,6 +2355,7 @@ vinum_setstate(int argc, char *argv[], char *argv0[]) void vinum_checkparity(int argc, char *argv[], char *argv0[]) { + Verbose = vflag; /* accept -v for verbose */ if (argc == 0) /* no parameters? */ fprintf(stderr, "Usage: checkparity object [object...]\n"); else @@ -2375,6 +2376,7 @@ vinum_rebuildparity(int argc, char *argv[], char *argv0[]) * We bend the meanings of some flags here: * * -v: Report incorrect parity on rebuild. + * -V: Show running count of position being checked. * -f: Start from beginning of the plex. */ void