Fs* in /usr/include/sys/param.h
Dan Troxel VP
dan at hrc.UUCP
Wed Dec 14 12:11:03 AEST 1988
On a Convergent S/640 box,(basic USG config), param.h uses several
Fs defines. One is what size are the logical blocks on your system.
When FsTYPE is set to 3, it allows a system to have a combination of
512,1024,2048 logical block sizes. But with that, you have to give it
a device. Here is part of that file:
#if FsTYPE==3
/* Dual system */
#define BSIZE 512 /* size of file system block (bytes) */
#define SBUFSIZE (BSIZE*2) /* system buffer size */
#define BSHIFT 9 /* LOG2(BSIZE) */
#define NINDIR (BSIZE/sizeof(daddr_t))
#define Fs2BLK 0x2000
#define FsLRG(dev) (dev&Fs2BLK)
#define FsBSIZE(dev) (FsLRG(dev) ? (BSIZE*2) : BSIZE)
#define FsBSHIFT(dev) (FsLRG(dev) ? 10 : 9)
#define FsNINDIR(dev) (FsLRG(dev) ? 256 : 128)
/*** lots of code deleted ***/
#endif
Normally, you when send a stucture of filsys, but on FsTYPE=3, it expects
a device, not a stucture. What do I use for the dev????
--
Dan Troxel VP of Computer Operations @
Handwriting Research Corporation - 2821 E. Camelback Road Suite 600
Phoenix, AZ 85016 WK 1-602-957-8870 HM 1-602-435-1240
UUCP : asuvax!hrc!dan
More information about the Comp.unix.wizards
mailing list