Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/bioctl bioctl(8): Don't print garbage bv_seconds.



details:   https://anonhg.NetBSD.org/src/rev/34963976c499
branches:  trunk
changeset: 366031:34963976c499
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue May 10 14:16:25 2022 +0000

description:
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
=============================================================
bv_level=5, bv_stripe_size=0
     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:

 sbin/bioctl/bioctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7bd5914a0ed3 -r 34963976c499 sbin/bioctl/bioctl.c
--- a/sbin/bioctl/bioctl.c      Tue May 10 14:13:37 2022 +0000
+++ b/sbin/bioctl/bioctl.c      Tue May 10 14:16:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bioctl.c,v 1.18 2019/02/04 04:36:41 mrg Exp $ */
+/* $NetBSD: bioctl.c,v 1.19 2022/05/10 14:16:25 msaitoh 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.19 2022/05/10 14:16:25 msaitoh Exp $");
 #endif
 
 #include <sys/types.h>
@@ -245,7 +245,7 @@
        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");



Home | Main Index | Thread Index | Old Index