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.

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

sync_vol Synchronizes a volume.<br />

#include <br />

unsigned long sync_vol(<br />

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

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

pHILE+ and MS-DOS formatted volumes.<br />

sync_vol() updates a mounted volume by writing all modified volume information<br />

to the physical device. Updated files, descriptors, and all cache buffers that contain<br />

physical blocks are flushed to the device.<br />

This call enables manual updating of a volume and is irrelevant in relation to<br />

immediate-write synchronization mode. CD-ROM volumes are read-only.<br />

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

synchronize.<br />

This system call returns 0 on success or an error code on failure.<br />

Hex Mnemonic Description<br />

0x2003 E_BADVOL Inconsistent data on volume; volume<br />

corrupted.<br />

0x200A E_DMOUNT Volume not mounted.<br />

0x2025 E_IDN Illegal device name.<br />

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

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 2-115<br />

2

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

Saved successfully!

Ooh no, something went wrong!