svn commit: r215229 - stable/8/usr.bin/tar

Tim Kientzle kientzle at FreeBSD.org
Sat Nov 13 05:52:45 UTC 2010


Author: kientzle
Date: Sat Nov 13 05:52:45 2010
New Revision: 215229
URL: http://svn.freebsd.org/changeset/base/215229

Log:
  MFC: Allow -b up to 8192.  Folks working with
  modern high-speed tape drives are routinely using
  block sizes of 1MB (-b 2048), allowing up to 8192
  should allow a little room for future growth.

Modified:
  stable/8/usr.bin/tar/bsdtar.c
Directory Properties:
  stable/8/usr.bin/tar/   (props changed)

Modified: stable/8/usr.bin/tar/bsdtar.c
==============================================================================
--- stable/8/usr.bin/tar/bsdtar.c	Sat Nov 13 05:50:49 2010	(r215228)
+++ stable/8/usr.bin/tar/bsdtar.c	Sat Nov 13 05:52:45 2010	(r215229)
@@ -186,9 +186,9 @@ main(int argc, char **argv)
 			break;
 		case 'b': /* SUSv2 */
 			t = atoi(bsdtar->optarg);
-			if (t <= 0 || t > 1024)
+			if (t <= 0 || t > 8192)
 				bsdtar_errc(1, 0,
-				    "Argument to -b is out of range (1..1024)");
+				    "Argument to -b is out of range (1..8192)");
 			bsdtar->bytes_per_block = 512 * t;
 			break;
 		case 'C': /* GNU tar */


More information about the svn-src-all mailing list