NetBSD Problem Report #60565

From www@netbsd.org  Sun Aug  9 22:35:39 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F0CA11A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Aug 2026 22:35:38 +0000 (UTC)
Message-Id: <20260809223537.9015C1A9246@mollari.NetBSD.org>
Date: Sun,  9 Aug 2026 22:35:37 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: dump(8): units are confusing
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60565
>Category:       bin
>Synopsis:       dump(8): units are confusing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 09 22:40:00 +0000 2026
>Last-Modified:  Sun Aug 23 14:35:01 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, ...
>Organization:
The NetBSDump Unit, Inc.
>Environment:
>Description:
     dump [-0123456789aceFinStuX] [-B records] [-b blocksize] [-d density]
          [-f file] [-h level] [-k read-blocksize] [-L label] [-l timeout]
          [-r cachesize] [-s feet] [-T date] [-U dumpdev] [-x snap-backup]
          files-to-dump
...
     -b blocksize
             The number of kilobytes per dump record.

	What is the default if I don't pass this?  Is there a minimum?
	Is there a maximum?

# dump -0 -a -X -S /repo/hg
  DUMP: Dumping sub files/directories from /repo
  DUMP: Dumping file/directory /repo/hg
  DUMP: Found /dev/rxbd1 on /repo in /etc/fstab
  DUMP: Date of this level 0 dump: Sun Aug  9 22:33:45 2026
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping a snapshot of a subset of /dev/rxbd1 (a subset of /repo) to /dev/null
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 17955272 tape blocks.

	Can we print this in MiB/GiB/TiB too, no matter what the block
	size is?

>How-To-Repeat:

	man dump

>Fix:

	Yes, please!

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60565 CVS commit: src/sbin/dump
Date: Sun, 23 Aug 2026 14:33:08 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sun Aug 23 14:33:08 UTC 2026

 Modified Files:
 	src/sbin/dump: dump.8

 Log Message:
 dump(8): Clarify various units and snapshot constraints in man page.

 PR bin/60565: dump(8): units are confusing


 To generate a diff of this commit:
 cvs rdiff -u -r1.72 -r1.73 src/sbin/dump/dump.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.