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

📄 nfs_prot.x

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 X
📖 第 1 页 / 共 2 页
字号:
case NFS3_OK:	READLINK3resok	resok;default:	READLINK3resfail resfail;};/* * Arguments to read (v3). */struct READ3args {	nfs_fh3		file;	offset3		offset;	count3		count;};struct READ3resok {	post_op_attr	file_attributes;	count3		count;	bool		eof;	opaque		data<>;};struct READ3resfail {	post_op_attr	file_attributes;};/* XXX: solaris 2.6 uses ``nfsstat'' here */union READ3res switch (nfsstat3 status) {case NFS3_OK:	READ3resok	resok;default:	READ3resfail	resfail;};/* * Arguments to write (v3). */enum stable_how {	UNSTABLE	= 0,	DATA_SYNC	= 1,	FILE_SYNC	= 2};struct WRITE3args {	nfs_fh3		file;	offset3		offset;	count3		count;	stable_how	stable;	opaque		data<>;};struct WRITE3resok {	wcc_data	file_wcc;	count3		count;	stable_how	committed;	writeverf3	verf;};struct WRITE3resfail {	wcc_data	file_wcc;};union WRITE3res switch (nfsstat3 status) {case NFS3_OK:	WRITE3resok	resok;default:	WRITE3resfail	resfail;};/* * Arguments to create (v3). */enum createmode3 {	UNCHECKED	= 0,	GUARDED		= 1,	EXCLUSIVE	= 2};union createhow3 switch (createmode3 mode) {case UNCHECKED:case GUARDED:	sattr3		obj_attributes;case EXCLUSIVE:	createverf3	verf;};struct CREATE3args {	diropargs3	where;	createhow3	how;};struct CREATE3resok {	post_op_fh3	obj;	post_op_attr	obj_attributes;	wcc_data	dir_wcc;};struct CREATE3resfail {	wcc_data	dir_wcc;};union CREATE3res switch (nfsstat3 status) {case NFS3_OK:	CREATE3resok	resok;default:	CREATE3resfail	resfail;};/* * Arguments to mkdir (v3). */struct MKDIR3args {	diropargs3	where;	sattr3		attributes;};struct MKDIR3resok {	post_op_fh3	obj;	post_op_attr	obj_attributes;	wcc_data	dir_wcc;};struct MKDIR3resfail {	wcc_data	dir_wcc;};union MKDIR3res switch (nfsstat3 status) {case NFS3_OK:	MKDIR3resok	resok;default:	MKDIR3resfail	resfail;};/* * Arguments to symlink (v3). */struct symlinkdata3 {	sattr3		symlink_attributes;	nfspath3	symlink_data;};struct SYMLINK3args {	diropargs3	where;	symlinkdata3	symlink;};struct SYMLINK3resok {	post_op_fh3	obj;	post_op_attr	obj_attributes;	wcc_data	dir_wcc;};struct SYMLINK3resfail {	wcc_data	dir_wcc;};union SYMLINK3res switch (nfsstat3 status) {case NFS3_OK:	SYMLINK3resok	resok;default:	SYMLINK3resfail	resfail;};/* * Arguments to mknod (v3). */struct devicedata3 {	sattr3		dev_attributes;	specdata3	spec;};union mknoddata3 switch (ftype3 type) {case NF3CHR:case NF3BLK:	devicedata3	device;case NF3SOCK:case NF3FIFO:	sattr3		pipe_attributes;default:	void;};struct MKNOD3args {	diropargs3	where;	mknoddata3	what;};struct MKNOD3resok {	post_op_fh3	obj;	post_op_attr	obj_attributes;	wcc_data	dir_wcc;};struct MKNOD3resfail {	wcc_data	dir_wcc;};union MKNOD3res switch (nfsstat3 status) {case NFS3_OK:	MKNOD3resok	resok;default:	MKNOD3resfail	resfail;};/* * Arguments to remove (v3). */struct REMOVE3args {	diropargs3	object;};struct REMOVE3resok {	wcc_data	dir_wcc;};struct REMOVE3resfail {	wcc_data	dir_wcc;};union REMOVE3res switch (nfsstat3 status) {case NFS3_OK:	REMOVE3resok	resok;default:	REMOVE3resfail	resfail;};/* * Arguments to rmdir (v3). */struct RMDIR3args {	diropargs3	object;};struct RMDIR3resok {	wcc_data	dir_wcc;};struct RMDIR3resfail {	wcc_data	dir_wcc;};union RMDIR3res switch (nfsstat3 status) {case NFS3_OK:	RMDIR3resok	resok;default:	RMDIR3resfail	resfail;};/* * Arguments to rename (v3). */struct RENAME3args {	diropargs3	from;	diropargs3	to;};struct RENAME3resok {	wcc_data	fromdir_wcc;	wcc_data	todir_wcc;};struct RENAME3resfail {	wcc_data	fromdir_wcc;	wcc_data	todir_wcc;};union RENAME3res switch (nfsstat3 status) {case NFS3_OK:	RENAME3resok	resok;default:	RENAME3resfail	resfail;};/* * Arguments to link (v3). */struct LINK3args {	nfs_fh3		file;	diropargs3	link;};struct LINK3resok {	post_op_attr	file_attributes;	wcc_data	linkdir_wcc;};struct LINK3resfail {	post_op_attr	file_attributes;	wcc_data	linkdir_wcc;};union LINK3res switch (nfsstat3 status) {case NFS3_OK:	LINK3resok	resok;default:	LINK3resfail	resfail;};/* * Arguments to readdir (v3). */struct READDIR3args {	nfs_fh3		dir;	cookie3		cookie;	cookieverf3	cookieverf;	count3		count;};struct entry3 {	fileid3		fileid;	filename3	name;	cookie3		cookie;	entry3		*nextentry;};struct dirlist3 {	entry3		*entries;	bool		eof;};struct READDIR3resok {	post_op_attr	dir_attributes;	cookieverf3	cookieverf;	dirlist3	reply;};struct READDIR3resfail {	post_op_attr	dir_attributes;};union READDIR3res switch (nfsstat3 status) {case NFS3_OK:	READDIR3resok	resok;default:	READDIR3resfail	resfail;};/* * Arguments to readdirplus (v3). */struct READDIRPLUS3args {	nfs_fh3		dir;	cookie3		cookie;	cookieverf3	cookieverf;	count3		dircount;	count3		maxcount;};struct entryplus3 {	fileid3		fileid;	filename3	name;	cookie3		cookie;	post_op_attr	name_attributes;	post_op_fh3	name_handle;	entryplus3	*nextentry;};struct dirlistplus3 {	entryplus3	*entries;	bool		eof;};struct READDIRPLUS3resok {	post_op_attr	dir_attributes;	cookieverf3	cookieverf;	dirlistplus3	reply;};struct READDIRPLUS3resfail {	post_op_attr	dir_attributes;};union READDIRPLUS3res switch (nfsstat3 status) {case NFS3_OK:	READDIRPLUS3resok	resok;default:	READDIRPLUS3resfail	resfail;};/* * Arguments to fsstat (v3). */struct FSSTAT3args {	nfs_fh3		fsroot;};struct FSSTAT3resok {	post_op_attr	obj_attributes;	size3		tbytes;	size3		fbytes;	size3		abytes;	size3		tfiles;	size3		ffiles;	size3		afiles;	uint32		invarsec;};struct FSSTAT3resfail {	post_op_attr	obj_attributes;};union FSSTAT3res switch (nfsstat3 status) {case NFS3_OK:	FSSTAT3resok	resok;default:	FSSTAT3resfail	resfail;};/* * Arguments to fsinfo (v3). */const FSF3_LINK		= 0x0001;const FSF3_SYMLINK	= 0x0002;const FSF3_HOMOGENEOUS	= 0x0008;const FSF3_CANSETTIME	= 0x0010;struct FSINFO3args {	nfs_fh3		fsroot;};struct FSINFO3resok {	post_op_attr	obj_attributes;	uint32		rtmax;	uint32		rtpref;	uint32		rtmult;	uint32		wtmax;	uint32		wtpref;	uint32		wtmult;	uint32		dtpref;	size3		maxfilesize;	nfstime3	time_delta;	uint32		properties;};struct FSINFO3resfail {	post_op_attr	obj_attributes;};union FSINFO3res switch (nfsstat3 status) {case NFS3_OK:	FSINFO3resok	resok;default:	FSINFO3resfail	resfail;};/* * Arguments to pathconf (v3). */struct PATHCONF3args {	nfs_fh3		object;};struct PATHCONF3resok {	post_op_attr	obj_attributes;	uint32		linkmax;	uint32		name_max;	bool		no_trunc;	bool		chown_restricted;	bool		case_insensitive;	bool		case_preserving;};struct PATHCONF3resfail {	post_op_attr	obj_attributes;};union PATHCONF3res switch (nfsstat3 status) {case NFS3_OK:	PATHCONF3resok	resok;default:	PATHCONF3resfail	resfail;};/* * Arguments to commit (v3). */struct COMMIT3args {	nfs_fh3		file;	offset3		offset;	count3		count;};struct COMMIT3resok {	wcc_data	file_wcc;	writeverf3	verf;};struct COMMIT3resfail {	wcc_data	file_wcc;};union COMMIT3res switch (nfsstat3 status) {case NFS3_OK:	COMMIT3resok	resok;default:	COMMIT3resfail	resfail;};#endif /* WANT_NFS3 *//* * Remote file service routines */program NFS_PROGRAM {	version NFS_VERSION {		void 		NFSPROC_NULL(void) = 0;		attrstat 		NFSPROC_GETATTR(nfs_fh) =	1;		attrstat 		NFSPROC_SETATTR(sattrargs) = 2;		void 		NFSPROC_ROOT(void) = 3;		diropres 		NFSPROC_LOOKUP(diropargs) = 4;		readlinkres 		NFSPROC_READLINK(nfs_fh) = 5;		readres 		NFSPROC_READ(readargs) = 6;		void 		NFSPROC_WRITECACHE(void) = 7;		attrstat		NFSPROC_WRITE(writeargs) = 8;		diropres		NFSPROC_CREATE(createargs) = 9;		nfsstat		NFSPROC_REMOVE(diropargs) = 10;		nfsstat		NFSPROC_RENAME(renameargs) = 11;		nfsstat		NFSPROC_LINK(linkargs) = 12;		nfsstat		NFSPROC_SYMLINK(symlinkargs) = 13;		diropres		NFSPROC_MKDIR(createargs) = 14;		nfsstat		NFSPROC_RMDIR(diropargs) = 15;		readdirres		NFSPROC_READDIR(readdirargs) = 16;		statfsres		NFSPROC_STATFS(nfs_fh) = 17;	} = 2;} = 100003;#ifdef WANT_NFS3program NFS3_PROGRAM {	version NFS_V3 {		void		NFSPROC3_NULL(void)			= 0;		GETATTR3res		NFSPROC3_GETATTR(GETATTR3args)		= 1;		SETATTR3res		NFSPROC3_SETATTR(SETATTR3args)		= 2;		LOOKUP3res		NFSPROC3_LOOKUP(LOOKUP3args)		= 3;		ACCESS3res		NFSPROC3_ACCESS(ACCESS3args)		= 4;		READLINK3res		NFSPROC3_READLINK(READLINK3args)	= 5;		READ3res		NFSPROC3_READ(READ3args)		= 6;		WRITE3res		NFSPROC3_WRITE(WRITE3args)		= 7;		CREATE3res		NFSPROC3_CREATE(CREATE3args)		= 8;		MKDIR3res		NFSPROC3_MKDIR(MKDIR3args)		= 9;		SYMLINK3res		NFSPROC3_SYMLINK(SYMLINK3args)		= 10;		MKNOD3res		NFSPROC3_MKNOD(MKNOD3args)		= 11;		REMOVE3res		NFSPROC3_REMOVE(REMOVE3args)		= 12;		RMDIR3res		NFSPROC3_RMDIR(RMDIR3args)		= 13;		RENAME3res		NFSPROC3_RENAME(RENAME3args)		= 14;		LINK3res		NFSPROC3_LINK(LINK3args)		= 15;		READDIR3res		NFSPROC3_READDIR(READDIR3args)		= 16;		READDIRPLUS3res		NFSPROC3_READDIRPLUS(READDIRPLUS3args)	= 17;		FSSTAT3res		NFSPROC3_FSSTAT(FSSTAT3args)		= 18;		FSINFO3res		NFSPROC3_FSINFO(FSINFO3args)		= 19;		PATHCONF3res		NFSPROC3_PATHCONF(PATHCONF3args)	= 20;		COMMIT3res		NFSPROC3_COMMIT(COMMIT3args)		= 21;	} = 3;} = 100003;#endif

⌨️ 快捷键说明

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