02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ufs(4)<br />

NAME<br />

u f s - format of a UPS file-system volume<br />

SYNOPSIS<br />

#include <br />

#include <br />

#include <br />

#include <br />

#include <br />

ufs(4)<br />

DESCRIYTION<br />

Every Berkeley 4.2 file-system (UPS) storage volume (for example,<br />

a hard disk or a floppy disk) has a common fonnat for certain<br />

vital information. Each volume is divided into a certain number<br />

of blocks. The block size is a parameter of the file system. Sectors<br />

0 to 7 on a file system may be used to contain bootstrap programs.<br />

The first superblock for the file system is located at sector<br />

8.<br />

The actual file system begins at sector 16 with the first alternate<br />

superblock. The layout of the superblock as defined by the include<br />

file is:<br />

tdefine FS MAGIC Ox01l954<br />

struct fs {<br />

February, 1990<br />

Revision C<br />

struct fs *fs_Iink;<br />

/* linked list of file systems */<br />

struct fs *fs_rlink;<br />

/* used for incore superblocks */<br />

daddr t fs_sblkno;<br />

/* addr of superblock in filesys */<br />

daddr t fs cblkno;<br />

-<br />

/* offset of cyl-block in filesys */<br />

daddr t fs iblkno;<br />

-<br />

/* offset of inode-blocks in filesys<br />

daddr t fS_dblkno;<br />

/* offset of first data after cg */<br />

long fs_cgoffset;<br />

/* cylinder group offset in cylinder */<br />

long fs_cgmask;<br />

time t fs_time;<br />

long fs_size;<br />

/* used to calc mod fs_ntrak */<br />

/* last time written */<br />

/* number of blocks in fs */<br />

*/<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!