Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!plains.nodak.edu!not-for-mail From: tinguely@plains.nodak.edu (Mark Tinguely) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Dump has a wheat allergy Date: 17 Jan 1996 21:14:25 -0600 Organization: North Dakota State University Lines: 33 Message-ID: <4dkduh$mod@plains.nodak.edu> References: <npmDKzA74.EKs@netcom.com> NNTP-Posting-Host: plains.nodak.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In article <npmDKzA74.EKs@netcom.com> npm@netcom.com (npm@netcom.com) writes: >(Silly subject line, I know) > >Dump is returning all kinds of errors when we back up a 3GB partition. >The OS is 2.0.5. That data seems to be fine, as far as I can tell, >but the errors are alarming. > >About 4500 lines of: > >DUMP: bread: lseek fails > >Is it because of the size of the file system? and then I said: } you may have a old dump. The problem with the old dump is that it used } longs in the lseek offset instead of using the off_t in the lseek offset. } } This will only give you the above error messages if you partition is greater } that 2 GB. } } you can either get the /usr/src/sbin/dump/traverse.c from the FreeBSD 2.1.0 } distribution, or go in with an editor and change the blkn in the lseek() } to: (off_t)blkno the off_t was always there, I meant to say, take lines that look like: if ((int)lseek(diskfd, ((off_t)blkno << dev_bshift), 0) < 0) and turn them into lines that look like: if (lseek(diskfd, ((off_t)blkno << dev_bshift), 0) == (off_t) -1) --"earth calling" mark.