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.

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

Error Codes<br />

Notes<br />

See Also<br />

Hex Mnemonic Description<br />

0x200A E_DMOUNT Volume not mounted.<br />

0x2025 E_IDN Illegal device name.<br />

0x2050 E_BADNFS NFS volume; illegal operation.<br />

1. If index is larger than the volume's block size, the read begins in a subsequent<br />

block. For example, on a volume with a 1024-byte block size, a read of block 5,<br />

index 1224, is the same as a read block 6, index 200.<br />

2. CD-ROM volumes generally use a 2K block size.<br />

3. read_vol() does not check for the end of the volume, so blocks beyond the<br />

specified volume size can be read if they physically exist.<br />

4. If the requested data includes either entire blocks or a contiguous sequence of<br />

blocks and if such blocks are not already in the buffer cache, the pHILE+ file<br />

system manager reads blocks directly into the buffer (without going through the<br />

buffer cache). Therefore, read_vol() executes more efficiently when bcount<br />

and index are equal to integral multiples of blocks.<br />

write_vol<br />

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