Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 1996 11:16:00 +0200 (IST)
From:      gena@netvision.net.il
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1320: dump limits blocksize to 32K
Message-ID:  <199606130916.LAA16644@Burka.NetVision.net.il>
Resent-Message-ID: <199606130820.BAA02695@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1320
>Category:       bin
>Synopsis:       dump limits blocksize to 32K
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 13 01:20:07 PDT 1996
>Last-Modified:
>Originator:     Gennady Sorokopud
>Organization:
--------
 Gennady B. Sorokopud - System programmer at NetVision Israel.
 E-Mail: gena@NetVision.net.il
 Homepage: http://www.netvision.net.il/~gena
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

    Any freebsd system

>Description:

  when you try to back up the system usin dump (or rdump) and blocksize
  required is > 32 (like by big DLT tapes) dump exits with :
  please choose a blocksize <= 32\n

  in /usr/src/sbin/dump/main.c:

                  case 'b':               /* blocks per tape write */
                        ntrec = numarg('b', "number of blocks per write",
                            1L, 1000L, &argc, &argv);
                        /* XXX restore is unable to restore dumps that
                           were created  with a blocksize larger than 32K.
                           Possibly a bug in the scsi tape driver. */
                        if ( ntrec > 32 ) {
                                msg("please choose a blocksize <= 32\n");
                                exit(X_ABORT);
                        }               
                        break;

  All this may be true (?) for local backup , but absolutely not
  when using rdump. I back up my system on DLT SCSI tape connected
  to Solaris system and tape's manuall says that blocksize = 126
  should be spcified.

>How-To-Repeat:

 In my case it's:

 /usr/sbin/rdump 0ufdbs nvsrv:/dev/nrst28 81633 126 180000 /dev/sd0a

>Fix:
	
*** main.c.org	Thu Jun 13 11:14:12 1996
--- main.c	Thu Jun 13 11:14:20 1996
***************
*** 167,179 ****
  		case 'b':		/* blocks per tape write */
  			ntrec = numarg('b', "number of blocks per write",
  			    1L, 1000L, &argc, &argv);
- 			/* XXX restore is unable to restore dumps that 
- 			   were created  with a blocksize larger than 32K.
- 			   Possibly a bug in the scsi tape driver. */
- 			if ( ntrec > 32 ) {
- 				msg("please choose a blocksize <= 32\n");
- 				exit(X_ABORT);
- 			}
  			break;
  
  		case 'B':		/* blocks per output file */
--- 167,172 ----
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606130916.LAA16644>