📄 nfsdrv.html
字号:
</blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the nfs driver number allocated by iosDrvInstall duringthe nfs driver initialization. If the nfs driver has yet to be initialized,or if initialization failed, nfsDrvNumGet will return ERROR.<p></blockquote><h4>RETURNS</h4><blockquote><p>the nfs driver number or ERROR</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b><hr><a name="nfsMount"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>nfsMount( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>nfsMount( )</strong> - mount an NFS file system</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS nfsMount ( char * host, /* name of remote host */ char * fileSystem, /* name of remote directory to mount */ char * localName /* local device name for remote dir (NULL = */ /* use fileSystem name) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine mounts a remote file system. It creates alocal device <i>localName</i> for a remote file system on a specified host.The host must have already been added to the local host table with<b><a href="./hostLib.html#hostAdd">hostAdd</a>( )</b>. If <i>localName</i> is NULL, the local name will be the same asthe remote name.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the driver is not installed,<i>host</i> is invalid, or memory is insufficient.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b>, <b><a href="./nfsDrv.html#nfsUnmount">nfsUnmount</a>( )</b>, <b><a href="./hostLib.html#hostAdd">hostAdd</a>( )</b><hr><a name="nfsMountAll"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>nfsMountAll( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>nfsMountAll( )</strong> - mount all file systems exported by a specified host</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS nfsMountAll ( char * pHostName, /* name of remote host */ char * pClientName, /* name of a client specified in access */ /* list, if any */ BOOL quietFlag /* FALSE = print name of each mounted file */ /* system */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine mounts the file systems exported by the host <i>pHostName</i>which are accessible by <i>pClientName</i>. A <i>pClientName</i> entry of NULLwill only mount file systems that are accessible by any client. The <b><a href="./nfsDrv.html#nfsMount">nfsMount</a>( )</b> routine is called to mount each file system. It createsa local device for each mount that has the same name as the remote filesystem.<p>If the <i>quietFlag</i> setting is FALSE, each file system is printed onstandard output after it is mounted successfully.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if any mount fails.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b>, <b><a href="./nfsDrv.html#nfsMount">nfsMount</a>( )</b><hr><a name="nfsDevShow"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>nfsDevShow( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>nfsDevShow( )</strong> - display the mounted NFS devices</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void nfsDevShow (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays the device names and their associated NFS file systems.<p></blockquote><h4>EXAMPLE</h4><blockquote><p><p><pre> -> nfsDevShow device name file system ----------- ----------- /yuba1/ yuba:/yuba1 /wrs1/ wrs:/wrs1</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b><hr><a name="nfsUnmount"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>nfsUnmount( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>nfsUnmount( )</strong> - unmount an NFS device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS nfsUnmount ( char * localName /* local of nfs device */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine unmounts file systems that were previously mounted via NFS.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if <i>localName</i> is not an NFS device or cannotbe mounted.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b>, <b><a href="./nfsDrv.html#nfsMount">nfsMount</a>( )</b><hr><a name="nfsDevListGet"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>nfsDevListGet( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>nfsDevListGet( )</strong> - create list of all the NFS devices in the system</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int nfsDevListGet ( unsigned long nfsDevList[], /* NFS dev list of handles */ int listSize /* number of elements available in the list */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine fills the array <i>nfsDevlist</i> up to <i>listSize</i>, with handles toNFS devices currently in the system.<p></blockquote><h4>RETURNS</h4><blockquote><p>The number of entries filled in the <i>nfsDevList</i> array.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b>, <b><a href="./nfsDrv.html#nfsDevInfoGet">nfsDevInfoGet</a>( )</b><hr><a name="nfsDevInfoGet"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>nfsDevInfoGet( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>nfsDevInfoGet( )</strong> - read configuration information from the requested NFS device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS nfsDevInfoGet ( unsigned long nfsDevHandle, /* NFS device handle */ NFS_DEV_INFO * pnfsInfo /* ptr to struct to hold config info */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine accesses the NFS device specified in the parameter <i>nfsDevHandle</i>and fills in the structure pointed to by <i>pnfsInfo</i>. The calling function should allocate memory for <i>pnfsInfo</i> and for the two character buffers,<b>remFileSys</b> and <b>locFileSys</b>, that are part of <i>pnfsInfo</i>. These buffers should have a size of <b>nfsMaxPath</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK if <i>pnfsInfo</i> information is valid, otherwise ERROR.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./nfsDrv.html#top">nfsDrv</a></b>, <b><a href="./nfsDrv.html#nfsDevListGet">nfsDevListGet</a>( )</b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -