06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

init_vol pHILE+ <strong>System</strong> <strong>Calls</strong><br />

params Points to an instance of the init_vol_params structure, which<br />

contains parameters used to initialize the volume. This structure is<br />

defined in as follows:<br />

typedef struct init_vol_params {<br />

char volume_label[12]; /* volume label */<br />

unsigned long volume_size; /* number blocks in volume */<br />

unsigned long num_of_file_descriptors;<br />

/* number descriptors in<br />

* FLIST */<br />

unsigned long starting_bitmap_block_number;<br />

/* first BITMAP block */<br />

unsigned long start_data_block_number;<br />

/* first data block */<br />

}INIT_VOL_PARAMS;<br />

This structure cannot be packed. The fields of the init_vol_params<br />

structure are described below:<br />

volume_label Contains a 12-byte volume label. The pHILE+<br />

file system manager copies the label to the<br />

volume's ROOTBLOCK but does not use it. (The<br />

volume label is not the volume name. The<br />

volume name contains the volume's major<br />

and minor device numbers.)<br />

volume_size The number of blocks on the volume. For<br />

example, a value of 5000 indicates the<br />

volume contains blocks 0 - 4999.<br />

num_of_file_descriptors<br />

starting_bitmap_block_number<br />

start_data_block_number<br />

The number of file descriptors in the volume's<br />

FLIST. This is the number of files that can be<br />

created on the volume.<br />

The starting block for the volume's BITMAP.<br />

The starting block for the volume's data<br />

blocks. The pHILE+ file system manager<br />

requires this parameter to be a multiple of 8.<br />

2-50 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!