AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
I�
FS (4) FS (4) NAME file system - format of system volume SYNOPSIS #include #include #include DESCRIPTION Every file system storage volume has a common format for certain vital information. Every such volume is divided into a certain number of 512 byte long sectors. Sector 0 is unused and is available to contain a bootstrap program or other information. Sector 1 is the super-block. The format of a super-block is: I* * Structure of the super-block *I struct filsys { }; ushort s_isize; daddr_t s_fsize; short s_nfree; daddr_t s_free[NICFREE] ; short s_ninode; ino_t s_inode[NICINOD]; char s_flock; char s_ilock; char s_fmod; char s_ronly; time_t s_time; short s_dinfo[4] ; daddr_t s_tfree; ino_t s_tinode; char s_fname[6]; char s_fpackf6]; long s_fi11[13 ; long s_magic; long s_type; #define FsMAGIC Oxfd187e20 #define Fs1 b #define Fs2b 1 2 - 1 - I* size in blocks of i-list *I /* size in blocks of entire *I I* volume *I I* number of addresses *I I* in s_free *I /* free block list *I /* number of i-nodes in *I I* s_inode *I /* free i-node list *I /* lock during free list *I /* manipulation *I /* lock during i-list *I /* manipulation *I I* super block modified *I I* flag * I /* mounted read-only flag * I I* last super block update *I I* device information *I /* total free blocks *I I* total free inodes *I I* file system name *I I* file system pack name *I /* ADJUST to make size *I /* of file system be 512 *I /* magic number to *I I* indicate new file system *I I* type of new file system *I /* s_magic number *I /* 512 byte block *I /* 1024 byte block *I
- Page 1021: TTYNAME ( 3C ) TTYNAME ( 3C ) NAME
- Page 1025 and 1026: UNGETC ( 3S ) UNGETC ( 3S ) NAME un
- Page 1027 and 1028: VPRINTF ( 3S ) VPRINTF ( 3S ) NAME
- Page 1029 and 1030: WIND ( 3T ) ( AT&T UNIX PC only ) W
- Page 1031 and 1032: WRASTOP ( 3T ) ( AT&T UNIX PC only
- Page 1033: INTRO ( 4) INTRO ( 4) NAME intro -
- Page 1036 and 1037: A.OUT ( 4) A.OUT ( 4) data segment
- Page 1038 and 1039: A.OUT (4) A.OUT (4) char n_numaux;
- Page 1041 and 1042: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1043 and 1044: ADF ( 4 ) (AT&T UNIX PC only ) \ \
- Page 1045 and 1046: ADF ( 4) (AT&T UNIX PC only ) FORMA
- Page 1047 and 1048: ADF (4) (AT&T UNIX PC only ) ADF (4
- Page 1049 and 1050: ADF (4) (AT&T UNIX PC only ) ADF (
- Page 1051 and 1052: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1053 and 1054: ADF ( 4 ) (AT&T UNIX PC only ) Toke
- Page 1055 and 1056: AR( 4 ) AR ( 4) NAME ar - common ar
- Page 1057: CHECKLIST ( 4 ) CHECKLIST ( 4 ) NAM
- Page 1060 and 1061: I I I I I I II I I I I I I I I I I
- Page 1063 and 1064: Dffi ( 4 ) Dffi ( 4 ) NAME dir - fo
- Page 1065: FILEHDR (4) (not. on PDP-11) FILEHD
- Page 1068 and 1069: FONT ( 4) (AT&T UNIX PC only ) FONT
- Page 1072 and 1073: FS (4) FS (4) S_type indicates the
- Page 1074 and 1075: (�
- Page 1076 and 1077: FSPEC ( 4) FSPEC ( 4) Several UNIX
- Page 1078 and 1079: GETTYDEFS ( 4) GETTYDEFS ( 4 ) sett
- Page 1080 and 1081: � , __
- Page 1082 and 1083: INITTAB ( 4) INITTAB ( 4) I etclini
- Page 1084 and 1085: I I �I I I I I � I I 1� 1 1 I
- Page 1086 and 1087: (� .
- Page 1089 and 1090: � LDFCN( 4) LDFCN( 4) NAME ldfcn
- Page 1091: LDFCN( 4) LDFCN{4) REWIND(Idptr) FE
- Page 1095 and 1096: MASTER ( 4) MASTER (4) NAME master
- Page 1097: MNTTAB (4) MNTTAB (4) NAME mnttab -
- Page 1100 and 1101: PASSWD (4) PASSWD ( 4) Haphazard mo
- Page 1102 and 1103: PHONE (4) 02 (short) 03 (short) 04
- Page 1104 and 1105: y . /
- Page 1107: PROFILE ( 4) PROFILE ( 4) NAME prof
- Page 1110 and 1111: RELOC (4) RELOC ( 4) R_ABS The refe
- Page 1112 and 1113: (�
- Page 1114 and 1115: SCCSFILE ( 4) SCCSFILE ( 4) time of
- Page 1116 and 1117: (�
- Page 1119 and 1120: SHLill ( 4) (AT&T UNIX PC only ) SH
FS (4) FS (4)<br />
NAME<br />
file system - format of system volume<br />
SYNOPSIS<br />
#include <br />
#include <br />
#include <br />
DESCRIPTION<br />
Every file system storage volume has a common format for certain<br />
vital information. Every such volume is divided into a certain<br />
number of 512 byte long sectors. Sector 0 is unused and is available<br />
to contain a bootstrap program or other information.<br />
Sector 1 is the super-block. The format of a super-block is:<br />
I*<br />
* Structure of the super-block<br />
*I<br />
struct filsys<br />
{<br />
};<br />
ushort s_isize;<br />
daddr_t s_fsize;<br />
short s_nfree;<br />
daddr_t s_free[NICFREE] ;<br />
short s_ninode;<br />
ino_t s_inode[NICINOD];<br />
char s_flock;<br />
char s_ilock;<br />
char s_fmod;<br />
char s_ronly;<br />
time_t s_time;<br />
short s_dinfo[4] ;<br />
daddr_t s_tfree;<br />
ino_t s_tinode;<br />
char s_fname[6];<br />
char s_fpackf6];<br />
long s_fi11[13 ;<br />
long s_magic;<br />
long s_type;<br />
#define FsMAGIC Oxfd187e20<br />
#define Fs1 b<br />
#define Fs2b<br />
1<br />
2<br />
- 1 -<br />
I* size in blocks of i-list *I<br />
/* size in blocks of entire *I<br />
I* volume *I<br />
I* number of addresses *I<br />
I* in s_free *I<br />
/* free block list *I<br />
/* number of i-nodes in *I<br />
I* s_inode *I<br />
/* free i-node list *I<br />
/* lock during free list *I<br />
/* manipulation *I<br />
/* lock during i-list *I<br />
/* manipulation *I<br />
I* super block modified *I<br />
I* flag * I<br />
/* mounted read-only flag * I<br />
I* last super block update *I<br />
I* device information *I<br />
/* total free blocks *I<br />
I* total free inodes *I<br />
I* file system name *I<br />
I* file system pack name *I<br />
/* ADJUST to make size *I<br />
/* of file system be 512 *I<br />
/* magic number to *I<br />
I* indicate new file system *I<br />
I* type of new file system *I<br />
/* s_magic number *I<br />
/* 512 byte block *I<br />
/* 1024 byte block *I