From owner-freebsd-bugs Thu Jun 13 02:00:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA07058 for bugs-outgoing; Thu, 13 Jun 1996 02:00:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA07045; Thu, 13 Jun 1996 02:00:02 -0700 (PDT) Date: Thu, 13 Jun 1996 02:00:02 -0700 (PDT) Message-Id: <199606130900.CAA07045@freefall.freebsd.org> To: freebsd-bugs Cc: From: Gennady Sorokopud Subject: Re: bin/1320: dump limits blocksize to 32K Reply-To: Gennady Sorokopud Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1320; it has been noted by GNATS. From: Gennady Sorokopud To: "Gary Palmer" Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/1320: dump limits blocksize to 32K Date: Thu, 13 Jun 1996 11:59:25 +0200 (IST) Hello! On 13-Jun-96 "Gary Palmer" wrote: [skip] >Your patch is wrong for just that reason ... it is true for local >backups, and removing the code which does the check is hence >incorrect. It should only ignore the blocksize for non-local backups, >not ignore it totally. Oh well, i though that local backups will work with this as well and 32 is just some ancient limit. Anyway , try this one: *** main.c.org Thu Jun 13 11:14:12 1996 --- main.c Thu Jun 13 11:57:36 1996 *************** *** 167,179 **** case 'b': /* blocks per tape write */ ntrec =3D numarg('b', "number of blocks per write", 1L, 1000L, &argc, &argv); - /* XXX restore is unable to restore dumps that=20 - were created with a blocksize larger than 32K. - Possibly a bug in the scsi tape driver. */ - if ( ntrec > 32 ) { - msg("please choose a blocksize <=3D 32\n"); - exit(X_ABORT); - } break; =20 case 'B': /* blocks per output file */ --- 167,172 ---- *************** *** 263,268 **** --- 256,271 ---- exit(X_ABORT); #endif } + else { + /* XXX restore is unable to restore dumps that=20 + were created with a blocksize larger than 32K. + Possibly a bug in the scsi tape driver. */ + if ( ntrec > 32 ) { + msg("please choose a blocksize <=3D 32\n"); + exit(X_ABORT); + } + } +=20 (void)setuid(getuid()); /* rmthost() is the only reason to be setuid */ =20 if (signal(SIGHUP, SIG_IGN) !=3D SIG_IGN) > >Gary >-- >Gary Palmer FreeBSD Core Team Member >FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info Best regards. -------- Gennady B. Sorokopud - System programmer at NetVision Israel. E-Mail: Gennady Sorokopud Homepage: http://www.netvision.net.il/~gena This message was sent at 06/13/96 11:59:25 by XF-Mail