⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exportfs.2nfs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 2NFS
字号:
.TH exportfs 2nfs.SH Nameexportfs \- exports an NFS file system.SH Syntax.nf.br.br.ft B#include <sys/mount.h>exportfs(name, rootuid, exflags)char *name;int rootuid, exflags;.PP.fi.SH Description.NXR "exportfs system call".NXR "file system" "exporting"The .PN exportfssystem call allows the specified local file system to be mountedremotely by an NFS client.  This system call is usually called from .PN mountd .Security on theexported file systems can be improvedby setting the root mapped userID,.I rootuid,and two mount structure flags,.I exflagsfor the local file system,.I name..PPThe.I name argument is a pointer to a null-terminated string containingthe path name of the file system being exported..PPThe.I rootuidargument is used to set the user ID that root maps to.  By default, rootmaps to user id \-2..PPThe .I exflags argument contains the flags that are to be set in the mount structurecorresponding to.I name.The following flags are the only possible flags accepted by .PN exportfs:.EX#define M_NOFH          0x1000          /* no fhandle flag */#define M_EXRONLY       0x2000          /* export read-only */.EE.PPSetting the M_NOFH flag does not allow access to the fhandle ofthe file system's root gnode.  The M_EXRONLY flag exports a filesystemread only. .PPThe.PN exportfssystem call returns a value of 0 upon successful completion of a operation, and \-1 upon failure.  .SH Diagnostics.TP 15[EPERM]Not superuser..TP 15[EIO]Not enough memory in the system to service the request..TP 15[EFAULT]Bad address or bad length of .I name..TP 15[ENOENT]The.I namecannot be found..SH See Alsoexports(5nfs), mountd(8nfs)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -