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> nfsmount_vol<br />

nfsmount_vol Mounts a remote file system.<br />

#include /* for htonl() */<br />

#include <br />

unsigned long nfsmount_vol(<br />

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

NFSMOUNT_VOL_PARAMS *params /* parameters */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

NFS volumes.<br />

nfsmount_vol() mounts an NFS volume. A volume must be mounted before any<br />

file operations can be conducted.<br />

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

the mount_vol() system call, the volume name provided does not<br />

correspond to a true pSOS+ device but to a pseudo-device. A pseudodevice<br />

does not necessarily correspond to any real device or device<br />

driver in the pSOS+ system. Drivers for this device number may or<br />

may not exist. In either case, the pHILE+ file system manager does not<br />

call them while it is accessing the NFS volume.<br />

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

contains parameters used for volume mounting and is defined in<br />

as follows:<br />

typedef struct nfsmount_vol_params {<br />

unsigned long ipaddr;/* Internet address of NFS server<br />

* NOTE: network byte order */<br />

char *pathname; /* pathname of filesystem to mount */<br />

unsigned long flags; /* reserved; set to 0*/<br />

unsigned long reserved[6]; /* reserved; set to 0*/<br />

} NFSMOUNT_VOL_PARAMS;<br />

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

2

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

Saved successfully!

Ooh no, something went wrong!