Subject: bin/3254: dump bd NUM NUM overrides blocksize
To: None <gnats-bugs@gnats.netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: netbsd-bugs
Date: 02/24/1997 23:38:41
>Number:         3254
>Category:       bin
>Synopsis:       dump bd NUM NUM overrides blocksize
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 24 14:50:01 1997
>Last-Modified:
>Originator:     Juergen Hannken-Illjes
>Organization:
	
TU Braunschweig; Abt. EIS
>Release:        <NetBSD-current source date>tar balls as of Feb 22, 1997
>Environment:
	
System: NetBSD home 1.2C NetBSD 1.2C (CUSTOM) #46: Sun Feb 23 18:17:36 MET 1997 hannken@home:/usr/src/sys/arch/i386/compile/CUSTOM i386


>Description:
	
Running 'dump bd 20 50000' results in a block size of 32 instead of the desired 20.
>How-To-Repeat:
	
Run 'dump bd 20 50000' and get a dump blocked as 32 kByte records.
>Fix:
	
Half fix is already there. 'bflag' is used but not set.

--- main.c.orig	Mon Jul  1 21:11:59 1996
+++ main.c	Mon Feb 24 23:32:07 1997
@@ -144,4 +144,5 @@
 		case 'b':		/* blocks per tape write */
 			ntrec = numarg("blocks per write", 1L, 1000L);
+			bflag = 1;
 			break;
 
>Audit-Trail:
>Unformatted: