06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

verify_vol Verifies a volume’s control structures.<br />

#include <br />

unsigned long verify_vol(<br />

char *device, /* volume name */<br />

VERIFY_VOL_PARAMS *params /* parameters */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

pHILE+ formatted volumes.<br />

verify_vol() examines all control structures on a pHILE+ formatted volume.<br />

Inconsistencies are reported to a user-supplied callout routine, which can relay<br />

further instructions. The callout routine can then request verify_vol() to correct<br />

the inconsistency.<br />

Usage instructions for verify_vol are provided in “Usage” on page 2-129.<br />

device Points to the null-terminated name of the volume to be verified.<br />

params Points to an instance of the verify_vol_params structure defined in<br />

as follows:<br />

typedef struct verify_vol_params {<br />

void *pb_dataptr; /* work area pointer */<br />

unsigned long pb_datalen; /* length of work area */<br />

unsigned long pb_maxdepth; /* maximum depth of<br />

* directory tree */<br />

fault_desc_block *pb_fdbptr; /* fault descriptor block<br />

* pointer */<br />

unsigned long (*pb_faultp)(void); /* faultp function */<br />

unsigned long *pb_badblkptr; /* bad block list */<br />

} VERIFY_VOL_PARAMS;<br />

This structure cannot be packed.<br />

2-126 <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!