summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-06-07 04:09:55 +0000
committergrog <grog@FreeBSD.org>2000-06-07 04:09:55 +0000
commit5f0f53bcd22328df7021f7844969aca43909752d (patch)
treef89cd7c3880dad91c1d357c3d45ebcac0f5c578d /sbin/vinum
parentbd3c3aa8a8dc4a57a5da9e02d25285ab48798ef3 (diff)
downloadFreeBSD-src-5f0f53bcd22328df7021f7844969aca43909752d.zip
FreeBSD-src-5f0f53bcd22328df7021f7844969aca43909752d.tar.gz
vinum_start: Set the revive blocksize correctly.
checkparity: Allow the -v flag to display progress.
Diffstat (limited to 'sbin/vinum')
-rw-r--r--sbin/vinum/commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index b10b97e..3b87ef3 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
OpenPOWER on IntegriCloud