diff options
| author | martin <martin@NetBSD.org> | 2022-05-14 11:40:07 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2022-05-14 11:40:07 +0000 |
| commit | ac8cbeeef9a66611a2b58a2880630484247b992b (patch) | |
| tree | 35fde08822f319ebefb088c57282b0b839daf15f /sbin | |
| parent | 20672ea2f66c67ed72e3b259f3810e95f51d2e8f (diff) | |
Pull up following revision(s) (requested by msaitoh in ticket #1449):
sbin/bioctl/bioctl.c: revision 1.19
bioctl(8): Don't print garbage bv_seconds.
This bug was added in bioctl.c rev. 1.7.
Before:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 64K 65535 seconds
After:
Volume Status Size Device/Label Level Stripe
=============================================================
0 Online 5.5T mfi0 RAID 5 64K
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/bioctl/bioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index bc025314cb4..fea8f87a44a 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: bioctl.c,v 1.18 2019/02/04 04:36:41 mrg Exp $ */ +/* $NetBSD: bioctl.c,v 1.18.2.1 2022/05/14 11:40:07 martin Exp $ */ /* $OpenBSD: bioctl.c,v 1.52 2007/03/20 15:26:06 jmc Exp $ */ /* @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: bioctl.c,v 1.18 2019/02/04 04:36:41 mrg Exp $"); +__RCSID("$NetBSD: bioctl.c,v 1.18.2.1 2022/05/14 11:40:07 martin Exp $"); #endif #include <sys/types.h> @@ -245,7 +245,7 @@ bio_show_volumes(struct biotmp *bt) bv.bv_cookie = bl.bl_cookie; bv.bv_volid = bt->volid; bv.bv_percent = -1; - bv.bv_seconds = -1; + bv.bv_seconds = 0; if (ioctl(bt->fd, BIOCVOL, &bv) == -1) err(EXIT_FAILURE, "BIOCVOL"); |
