Module Name: src Committed By: martin Date: Sun May 15 12:15:53 UTC 2022
Modified Files: src/sbin/bioctl [netbsd-8]: bioctl.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1741): 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 To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.17.8.1 src/sbin/bioctl/bioctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/bioctl/bioctl.c diff -u src/sbin/bioctl/bioctl.c:1.17 src/sbin/bioctl/bioctl.c:1.17.8.1 --- src/sbin/bioctl/bioctl.c:1.17 Fri Jan 16 20:12:28 2015 +++ src/sbin/bioctl/bioctl.c Sun May 15 12:15:53 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: bioctl.c,v 1.17 2015/01/16 20:12:28 christos Exp $ */ +/* $NetBSD: bioctl.c,v 1.17.8.1 2022/05/15 12:15:53 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.17 2015/01/16 20:12:28 christos Exp $"); +__RCSID("$NetBSD: bioctl.c,v 1.17.8.1 2022/05/15 12:15:53 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");