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.

write_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 />

0x2015 E_RO Operation not allowed on read-only<br />

system files, directories, or mounted<br />

volumes.<br />

0x2025 E_IDN Illegal device name.<br />

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

0x2060 E_BADCD CD-ROM volume; illegal operation.<br />

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

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

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

2. write_vol() does not check for the end of the volume; blocks beyond the<br />

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

3. 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 writes the blocks directly to the volume (without going through<br />

the buffer cache.) Therefore, write_vol() operations are more efficient when<br />

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

4. write_vol() execution on any block is allowed, including blocks in system<br />

files. Therefore, use this call cautiously.<br />

5. CD-ROM volumes are read-only.<br />

read_vol<br />

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