diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2008-07-02 22:08:03 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2008-07-02 22:08:03 +0000 |
commit | bc72e1b3e2b46afcf0b7cd4a386bfce9437abd15 (patch) | |
tree | 4f7ee7fed922474b45dab987f1efb7f87b75c3bb /sbin/bioctl/bioctl.c | |
parent | 7b8bcedba96e25279f07d89fda901c3cca5d8cf9 (diff) |
string munging: say 'CRYPTO' not 'RAID67'
ok marco@
Diffstat (limited to 'sbin/bioctl/bioctl.c')
-rw-r--r-- | sbin/bioctl/bioctl.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index 105bc10052e..c7542c8ae8c 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.71 2008/06/15 18:52:58 jmc Exp $ */ +/* $OpenBSD: bioctl.c,v 1.72 2008/07/02 22:08:02 todd Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -361,9 +361,19 @@ bio_inq(char *name) else snprintf(size, sizeof size, "%14llu", bv.bv_size); - printf("%7s %-10s %14s %-7s RAID%u%s%s\n", - volname, status, size, bv.bv_dev, - bv.bv_level, percent, seconds); + switch (bv.bv_level) { + case 'C': + printf("%7s %-10s %14s %-7s CRYPTO%s%s\n", + volname, status, size, bv.bv_dev, + percent, seconds); + break; + default: + printf("%7s %-10s %14s %-7s RAID%u%s%s\n", + volname, status, size, bv.bv_dev, + bv.bv_level, percent, seconds); + break; + } + } for (d = 0; d < bv.bv_nodisk; d++) { |