Source-Changes-HG archive

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

[src/netbsd-8]: src/sbin/dump Pull up following revision(s) (requested by kre...



details:   https://anonhg.NetBSD.org/src/rev/9772d710a3c4
branches:  netbsd-8
changeset: 946750:9772d710a3c4
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 07 19:35:50 2020 +0000

description:
Pull up following revision(s) (requested by kre in ticket #1630):

        sbin/dump/dump.h: revision 1.59
        sbin/dump/main.c: revision 1.78

PR bin/55834

count blocks written in unsigned 64 bit counter
rather than signed int which overflows after 2^31-1
blocks (2TiB) after which neither the 5 minute
status updates or SIGINFO (^T) reports are issued
until the negative numbers increase past 0 and
wildly inaccurate reports would be written.

diffstat:

 sbin/dump/dump.h |  4 ++--
 sbin/dump/main.c |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 1be1edfcb03b -r 9772d710a3c4 sbin/dump/dump.h
--- a/sbin/dump/dump.h  Sun Dec 06 10:28:28 2020 +0000
+++ b/sbin/dump/dump.h  Mon Dec 07 19:35:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dump.h,v 1.54.8.1 2019/03/29 19:43:28 martin Exp $     */
+/*     $NetBSD: dump.h,v 1.54.8.2 2020/12/07 19:35:50 martin Exp $     */
 
 /*-
  * Copyright (c) 1980, 1993
@@ -134,7 +134,7 @@
 extern int     density;        /* density in 0.1" units */
 extern int     notify;         /* notify operator flag */
 extern int     timestamp;      /* timestamp messages */
-extern int     blockswritten;  /* number of blocks written on current tape */
+extern u_int64_t       blockswritten;  /* blocks written on current tape */
 extern int     tapeno;         /* current tape number */
 extern int     is_ufs2;
 
diff -r 1be1edfcb03b -r 9772d710a3c4 sbin/dump/main.c
--- a/sbin/dump/main.c  Sun Dec 06 10:28:28 2020 +0000
+++ b/sbin/dump/main.c  Mon Dec 07 19:35:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.73.8.1 2019/03/29 19:43:28 martin Exp $     */
+/*     $NetBSD: main.c,v 1.73.8.2 2020/12/07 19:35:50 martin Exp $     */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.73.8.1 2019/03/29 19:43:28 martin Exp $");
+__RCSID("$NetBSD: main.c,v 1.73.8.2 2020/12/07 19:35:50 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -71,7 +71,7 @@
 
 int    timestamp;              /* print message timestamps */
 int    notify;                 /* notify operator flag */
-int    blockswritten;          /* number of blocks written on current tape */
+u_int64_t      blockswritten;  /* number of blocks written on current tape */
 int    tapeno;                 /* current tape number */
 int    density;                /* density in bytes/0.1" */
 int    ntrec = NTREC;          /* # tape blocks in each tape record */



Home | Main Index | Thread Index | Old Index