Seeking a Development Environment (Sun?)
System Mangler
mangler at cit-vax.Caltech.Edu
Mon Oct 27 10:28:11 AEST 1986
In article <8501 at sun.uucp>, guy at sun.uucp (Guy Harris) writes:
> The main thing you'd have to do is teach it [4.1bsd dump] to
> support both 512-byte and 1024-byte file systems.
First, remove the fstab stuff. Sys V has no /etc/fstab.
Next, realize that daddr's are in units of the filesystem blocksize
(e.g. 1024) but bread() and the tape routines use different units.
Conversion factors creep in everywhere.
You have to decide whether TP_BSIZE is 512 or 1024. Making it BSIZE
(512) makes dumpdir happy, but then it takes two spclrec's to hold
each indirect block from a 1K filesystem (harmless but ugly).
The dumprestor.h supplied with Sys V defines NTREC as 20, which is
too large for the 3B20's UN52 tape controller (limited to blocksizes
of 6 KB or less).
If TP_BSIZE is smaller than the blocksize of the filesystem being
restor'd, bmap() needs to return the same pointer for both 512-byte
halves instead of zapping the pointer and allocating 1K block. Be
sure to zap the first block pointer, which got copied from the tape
inode just in case the file was character or block special (better
yet, only copy that block pointer if the file is actually special).
Lastly, integrate the 4.3bsd dump speedups, which already understand
about variable blocksizes. Main difficulty is recovery from the 4.1bsd
interrupt trap routine (signals vs. pipes *sigh*); once you get that
right, the interprocess synchronization is easy to convert to signals.
Despite only being able to read 1K at a time, full dumps are nearly
the same speed as volcopy. The UN52 tape controller simply won't
go faster than 80 KB/s. Of course incremental dumps beat the tar
out of cpio.
> Anybody at AT&T-IS willing to torque off their management by doing this?
(I got pretty torqued off at having to do this myself, and so did my
management). If adopting a 4.1bsd program is going to torque off the
AT&T-IS management, start from the Sys III version! The differences
are largely cosmetic.
Don Speck speck at vlsi.caltech.edu {seismo,rutgers}!cit-vax!speck
More information about the Comp.unix.wizards
mailing list