示例#1
0
bool_t
xdr_fsinfo3res (XDR *xdrs, fsinfo3res *objp)
{
	 if (!xdr_nfsstat3 (xdrs, &objp->status))
		 return FALSE;
	switch (objp->status) {
	case NFS3_OK:
		 if (!xdr_fsinfo3resok (xdrs, &objp->fsinfo3res_u.resok))
			 return FALSE;
		break;
	default:
		 if (!xdr_fsinfo3resfail (xdrs, &objp->fsinfo3res_u.resfail))
			 return FALSE;
		break;
	}
	return TRUE;
}
示例#2
0
文件: nfs3_prot.c 项目: bougyman/sfs
bool_t
xdr_fsinfo3res(XDR *xdrs, fsinfo3res *objp)
{

	 register int32_t *buf;

	 if (!xdr_nfsstat3(xdrs, &objp->status)) {
		 return (FALSE);
	 }
	switch (objp->status) {
	case NFS3_OK:
		 if (!xdr_fsinfo3resok(xdrs, &objp->RPC_UNION_NAME(fsinfo3res).resok)) {
			 return (FALSE);
		 }
		break;
	default:
		 if (!xdr_post_op_attr(xdrs, &objp->RPC_UNION_NAME(fsinfo3res).resfail)) {
			 return (FALSE);
		 }
		break;
	}
	return (TRUE);
}