Xref: utzoo comp.unix.wizards:13446 comp.lang.c:14717 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!noao!asuvax!hrc!dan From: dan@hrc.UUCP (Dan Troxel VP) Newsgroups: comp.unix.wizards,comp.lang.c Subject: Fs* in /usr/include/sys/param.h Keywords: what is (dev) in FsTYPE=3 Message-ID: <374@hrc.UUCP> Date: 14 Dec 88 02:11:03 GMT Organization: Handwriting Research Corp. - Phoenix, AZ Lines: 27 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