Date: Wed, 22 Mar 1995 00:15:44 GMT From: steve2@genesis.tiac.net (Steve Gerakines) To: freebsd-hackers@FreeBSD.org Subject: Re: Problems with 2940 and 950210snap Message-ID: <199503220015.AAA06755@genesis.tiac.net>
next in thread | raw e-mail | index | archive | help
> > Exactly what do you mean by that? I have been hacking a FULLY QIC compat > > backup/restore [i.e., QIC-40/80, and 113 style filesets] program for some > > time now for FreeBSD. Would such a change in any way effect my work? I plan on keeping the ioctl()'s to directly read and write tape segments around so your backup/restore program should still work. I started writing a backup program myself but I never finished it. If you'd like the source drop me a note and I'll send it off. > I mean that having both a device driver (/dev/ft0) and a special > user-agent for dealing with it (ft) violates the UNIX principle of > least surprise. I should be able to do: > > tar cvf /dev/ft0 <some path> > > And have it just work. The fact that /dev/rst0 and /dev/rmt0 both do > this only leads the new user further down the garden path. This is in progress, and it has some advantages and disadvantages. On the positive side, usage will be consistent with other tape drives. Since ECC support is moved into the driver, I can now perform some low level error recovery that the current driver is unable to do. While I'm in doing this stuff I'm trying very hard to eliminate the strange state machines within the driver as well. On the negative side, the driver is going to be much larger than it currently is. I also expect that the tape drive will not stream very well. (Ages ago the driver used strategy() for its work instead of ioctls and performed poorly, but this may have improved.) The last drawback is that with tar or dump you lose the ability to random access files on the tape. A QIC-40/80 backup program does this by storing the entire file directory at the front of a saved set. > Actually, I think if you do a tar cvf /dev/ft0 at this point you will > panic your system! Not quite user-friendly enough yet! :-) I'll have to check this in 2.0. On my 1.1.5 system I just get I/O errors. I do have some questions about what some correct magtape behaviors are, so if someone familiar with wt and st would raise their hand I would be grateful. :-) One concern I have is regarding tape length. It looks like dump wants to calculate the tape length in advance to avoid reaching end of media. QIC-40/80 tape drives have a variable number of blocks, depending upon how many have been marked bad, so how would I get a decent length? Is it a problem for dump to just fall off the end of the tape? - Steve steve2@genesis.tiac.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503220015.AAA06755>