]> git.wh0rd.org - dump.git/commitdiff
Raised the -b maximal value to 1024.
authorStelian Pop <stelian@popies.net>
Mon, 2 Sep 2002 12:43:12 +0000 (12:43 +0000)
committerStelian Pop <stelian@popies.net>
Mon, 2 Sep 2002 12:43:12 +0000 (12:43 +0000)
CHANGES
THANKS
dump/dump.8.in
dump/main.c

diff --git a/CHANGES b/CHANGES
index 6ca199ed12c47f733c8a4ac799f09c99cf7ca355..dc1f61365979b353cdf3c3dc974f5c7956dcab42 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.194 2002/09/02 12:20:26 stelian Exp $
+$Id: CHANGES,v 1.195 2002/09/02 12:43:12 stelian Exp $
 
 Changes between versions 0.4b31 and 0.4b32 (released ?????????????)
 ===================================================================
@@ -19,6 +19,11 @@ Changes between versions 0.4b31 and 0.4b32 (released ?????????????)
 
 3.     Fixed dump's estimate when dealing with sparse inodes.
 
+4.     Modified dump to allow setting a blocksize bigger than 32kB
+       (raised the limit to 1024kB), because newer hardware needs
+       this for proper operation. Thanks to Dirk Traenapp
+       <dtraenapp@users.sourceforge.net> for reporting this.
+
 Changes between versions 0.4b30 and 0.4b31 (released July 30, 2002)
 ===================================================================
 
diff --git a/THANKS b/THANKS
index 24883ace153834ec75622c84ed59cbc109eb9887..a4a6ea3d5ee2de425a0c385325831723c49f25d5 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.66 2002/08/18 20:52:04 stelian Exp $
+$Id: THANKS,v 1.67 2002/09/02 12:44:03 stelian Exp $
 
 Dump and restore were written by the people of the CSRG at the University
 of California, Berkeley.
@@ -94,6 +94,7 @@ Clemens Stiglechner   a9401816@unet.univie.ac.at
 Matti Taskinen         mkt@rni.helsinki.fi
 Jason L Tibbitts III   tibbs@math.uh.edu
 Mike Tibor             tibor@lib.uaa.alaska.edu
+Dirk Traenapp          dtraenapp@users.sourceforge.net
 Erik Troan             ewt@redhat.com
 Theodore Y. Ts'o       tytso@valinux.com
 Stephen Tweedie                sct@dcs.ed.ac.uk
index c92f90c3268dc512df280c3c152b2b74569efa31..25819a24f98f4e570ac821c3e7d033ba8026f5d5 100644 (file)
@@ -30,7 +30,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\"    $Id: dump.8.in,v 1.44 2002/07/24 14:12:00 stelian Exp $
+.\"    $Id: dump.8.in,v 1.45 2002/09/02 12:43:12 stelian Exp $
 .\"
 .TH DUMP 8 "version __VERSION__ of __DATE__" BSD "System management commands"
 .SH NAME
@@ -115,17 +115,16 @@ to be used by
 to determine whether a file is in the dump file that is being restored.
 .TP
 .BI \-b " blocksize"
-The number of kilobytes per dump record. Since the IO system slices all
-requests into chunks of 
+The number of kilobytes per dump record. The default blocksize is 10
+and the maximal value is 1024.
+Note however that, since the IO system slices all requests into chunks
+of 
 .B MAXBSIZE
-(typically 64kB), it is not possible to use a larger blocksize without having 
-problems later with
-.BR restore (8).
-Therefore
-.B dump
-will constrain writes to 
-.B MAXBSIZE.
-The default blocksize is 10.
+(which can be as low as 64kB), you can experience problems with
+.BR dump (8)
+and
+.BR restore (8)
+when using a higher value, depending on your kernel and/or libC versions.
 .TP
 .BI \-B " records"
 The number of 1 kB blocks per volume. Not normally required, as
index d06c2fde3863fe2b1c98fe45a132835535a22e38..ebfab4fd22c77b659183392ecfb0e832c139287e 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.74 2002/07/19 14:57:39 stelian Exp $";
+       "$Id: main.c,v 1.75 2002/09/02 12:43:12 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -181,7 +181,7 @@ long        uncomprblks = 0;/* uncompressed blocks written */
 char   *__progname;
 #endif
 
-int    maxbsize = 64*1024;     /* XXX MAXBSIZE from sys/param.h */
+int    maxbsize = 1024*1024;     /* XXX MAXBSIZE from sys/param.h */
 static long numarg __P((const char *, long, long));
 static void obsolete __P((int *, char **[]));
 static void usage __P((void));
@@ -293,7 +293,7 @@ main(int argc, char *argv[])
 
                case 'b':               /* blocks per tape write */
                        ntrec = numarg("number of blocks per write",
-                           1L, 1000L);
+                           1L, 1048576L);
                        if (ntrec > maxbsize/1024) {
                                msg("Please choose a blocksize <= %dkB\n",
                                        maxbsize/1024);