Lines Matching defs:xdrs

75 xdr_string3(XDR *xdrs, char **cpp, uint_t maxsize)
86 switch (xdrs->x_op) {
100 if (!xdr_u_int(xdrs, &size))
106 switch (xdrs->x_op) {
110 if (!XDR_CONTROL(xdrs, XDR_SKIPBYTES, &size))
126 if (xdr_opaque(xdrs, sp, size)) {
142 return (xdr_opaque(xdrs, sp, size));
249 xdr_decode_nfs_fh3(XDR *xdrs, nfs_fh3 *objp)
256 ASSERT(xdrs->x_op == XDR_DECODE);
261 if (!XDR_GETINT32(xdrs, (int32_t *)&fhsize))
276 if (!XDR_CONTROL(xdrs, XDR_SKIPBYTES, &fhsize))
285 ptr = XDR_INLINE(xdrs, bufsize);
289 if (!xdr_opaque(xdrs, (char *)bp, bufsize)) {
390 xdr_encode_nfs_fh3(XDR *xdrs, nfs_fh3 *objp)
398 ASSERT(xdrs->x_op == XDR_ENCODE);
421 ptr = XDR_INLINE(xdrs, otw_len);
430 ret = xdr_opaque(xdrs, (char *)buf, otw_len);
440 xdr_nfs_fh3(XDR *xdrs, nfs_fh3 *objp)
442 if (xdrs->x_op == XDR_FREE)
445 if (!xdr_u_int(xdrs, &objp->fh3_length))
451 return (xdr_opaque(xdrs, objp->fh3_u.data, objp->fh3_length));
460 xdr_nfs_fh3_server(XDR *xdrs, nfs_fh3 *objp)
462 switch (xdrs->x_op) {
465 return (xdr_nfs_fh3(xdrs, objp));
467 return (xdr_encode_nfs_fh3(xdrs, objp));
469 return (xdr_decode_nfs_fh3(xdrs, objp));
479 xdr_diropargs3(XDR *xdrs, diropargs3 *objp)
481 switch (xdrs->x_op) {
484 if (!xdr_nfs_fh3(xdrs, objp->dirp))
488 if (!xdr_nfs_fh3_server(xdrs, &objp->dir))
492 return (xdr_string3(xdrs, &objp->name, MAXNAMELEN));
496 xdr_fattr3(XDR *xdrs, fattr3 *na)
500 if (xdrs->x_op == XDR_FREE)
503 ptr = XDR_INLINE(xdrs, NFS3_SIZEOF_FATTR3 * BYTES_PER_XDR_UNIT);
505 if (xdrs->x_op == XDR_DECODE) {
544 if (!(xdr_enum(xdrs, (enum_t *)&na->type) &&
545 xdr_u_int(xdrs, &na->mode) &&
546 xdr_u_int(xdrs, &na->nlink) &&
547 xdr_u_int(xdrs, &na->uid) &&
548 xdr_u_int(xdrs, &na->gid) &&
549 xdr_u_longlong_t(xdrs, &na->size) &&
550 xdr_u_longlong_t(xdrs, &na->used) &&
551 xdr_u_int(xdrs, &na->rdev.specdata1) &&
552 xdr_u_int(xdrs, &na->rdev.specdata2) &&
553 xdr_u_longlong_t(xdrs, &na->fsid) &&
554 xdr_u_longlong_t(xdrs, &na->fileid) &&
555 xdr_u_int(xdrs, &na->atime.seconds) &&
556 xdr_u_int(xdrs, &na->atime.nseconds) &&
557 xdr_u_int(xdrs, &na->mtime.seconds) &&
558 xdr_u_int(xdrs, &na->mtime.nseconds) &&
559 xdr_u_int(xdrs, &na->ctime.seconds) &&
560 xdr_u_int(xdrs, &na->ctime.nseconds)))
575 xdr_fattr3_to_vattr(XDR *xdrs, fattr3_res *objp)
586 ASSERT(xdrs->x_op == XDR_DECODE);
592 ptr = XDR_INLINE(xdrs, NFS3_SIZEOF_FATTR3 * BYTES_PER_XDR_UNIT);
677 if (!(xdr_enum(xdrs, (enum_t *)&vap->va_type) &&
678 xdr_u_int(xdrs, &vap->va_mode) &&
679 xdr_u_int(xdrs, &vap->va_nlink) &&
680 xdr_u_int(xdrs, (uint_t *)&vap->va_uid) &&
681 xdr_u_int(xdrs, (uint_t *)&vap->va_gid) &&
682 xdr_u_longlong_t(xdrs, &vap->va_size) &&
683 xdr_u_longlong_t(xdrs, &used) &&
684 xdr_u_int(xdrs, &rdev.specdata1) &&
685 xdr_u_int(xdrs, &rdev.specdata2) &&
686 xdr_u_longlong_t(xdrs, &fsid) && /* ignored */
687 xdr_u_longlong_t(xdrs, &vap->va_nodeid)))
691 if (!xdr_u_int(xdrs, &ntime))
694 if (!xdr_u_int(xdrs, &ntime))
698 if (!xdr_u_int(xdrs, &ntime))
701 if (!xdr_u_int(xdrs, &ntime))
705 if (!xdr_u_int(xdrs, &ntime))
708 if (!xdr_u_int(xdrs, &ntime))
716 if (!xdr_u_int(xdrs, &ntime))
723 if (!xdr_u_int(xdrs, &ntime))
727 if (!xdr_u_int(xdrs, &ntime))
734 if (!xdr_u_int(xdrs, &ntime))
738 if (!xdr_u_int(xdrs, &ntime))
745 if (!xdr_u_int(xdrs, &ntime))
809 xdr_post_op_vattr(XDR *xdrs, post_op_vattr *objp)
814 ASSERT(xdrs->x_op == XDR_DECODE);
816 if (!xdr_bool(xdrs, &objp->attributes))
825 if (!xdr_fattr3_to_vattr(xdrs, &objp->fres))
839 xdr_post_op_attr(XDR *xdrs, post_op_attr *objp)
841 if (!xdr_bool(xdrs, &objp->attributes))
850 if (!xdr_fattr3(xdrs, &objp->attr))
859 if (xdrs->x_op == XDR_DECODE) {
874 xdr_wcc_data(XDR *xdrs, wcc_data *objp)
879 if (xdrs->x_op == XDR_FREE)
882 if (xdrs->x_op == XDR_DECODE) {
884 if (!xdr_bool(xdrs, &objp->before.attributes))
890 ptr = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT);
898 if (!xdr_u_longlong_t(xdrs, &attrp->size))
900 if (!xdr_u_int(xdrs, &attrp->mtime.seconds))
902 if (!xdr_u_int(xdrs, &attrp->mtime.nseconds))
904 if (!xdr_u_int(xdrs, &attrp->ctime.seconds))
906 if (!xdr_u_int(xdrs, &attrp->ctime.nseconds))
926 if (xdrs->x_op == XDR_ENCODE) {
928 if (!xdr_bool(xdrs, &objp->before.attributes))
935 ptr = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT);
943 if (!xdr_u_longlong_t(xdrs, &attrp->size))
945 if (!xdr_u_int(xdrs, &attrp->mtime.seconds))
947 if (!xdr_u_int(xdrs, &attrp->mtime.nseconds))
949 if (!xdr_u_int(xdrs, &attrp->ctime.seconds))
951 if (!xdr_u_int(xdrs, &attrp->ctime.nseconds))
961 return (xdr_post_op_attr(xdrs, &objp->after));
965 xdr_post_op_fh3(XDR *xdrs, post_op_fh3 *objp)
967 if (!xdr_bool(xdrs, &objp->handle_follows))
971 switch (xdrs->x_op) {
973 if (!xdr_nfs_fh3_server(xdrs, &objp->handle))
978 if (!xdr_nfs_fh3(xdrs, &objp->handle))
991 xdr_sattr3(XDR *xdrs, sattr3 *objp)
994 if (!xdr_bool(xdrs, &objp->mode.set_it))
997 if (!xdr_u_int(xdrs, &objp->mode.mode))
1000 if (!xdr_bool(xdrs, &objp->uid.set_it))
1003 if (!xdr_u_int(xdrs, &objp->uid.uid))
1006 if (!xdr_bool(xdrs, &objp->gid.set_it))
1009 if (!xdr_u_int(xdrs, &objp->gid.gid))
1013 if (!xdr_bool(xdrs, &objp->size.set_it))
1016 if (!xdr_u_longlong_t(xdrs, &objp->size.size))
1020 if (!xdr_enum(xdrs, (enum_t *)&objp->atime.set_it))
1023 if (!xdr_u_int(xdrs, &objp->atime.atime.seconds))
1025 if (!xdr_u_int(xdrs, &objp->atime.atime.nseconds))
1030 if (!xdr_enum(xdrs, (enum_t *)&objp->mtime.set_it))
1033 if (!xdr_u_int(xdrs, &objp->mtime.mtime.seconds))
1035 if (!xdr_u_int(xdrs, &objp->mtime.mtime.nseconds))
1043 xdr_GETATTR3res(XDR *xdrs, GETATTR3res *objp)
1045 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1050 return (xdr_fattr3(xdrs, &objp->resok.obj_attributes));
1054 xdr_GETATTR3vres(XDR *xdrs, GETATTR3vres *objp)
1059 if (xdrs->x_op == XDR_FREE)
1062 if (xdrs->x_op != XDR_DECODE)
1065 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1071 return (xdr_fattr3_to_vattr(xdrs, &objp->fres));
1076 xdr_SETATTR3args(XDR *xdrs, SETATTR3args *objp)
1078 switch (xdrs->x_op) {
1081 if (!xdr_nfs_fh3(xdrs, &objp->object))
1085 if (!xdr_nfs_fh3_server(xdrs, &objp->object))
1089 if (!xdr_sattr3(xdrs, &objp->new_attributes))
1093 if (!xdr_bool(xdrs, &objp->guard.check))
1097 if (!xdr_u_int(xdrs, &objp->guard.obj_ctime.seconds))
1099 return (xdr_u_int(xdrs, &objp->guard.obj_ctime.nseconds));
1108 xdr_SETATTR3res(XDR *xdrs, SETATTR3res *objp)
1110 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1114 return (xdr_wcc_data(xdrs, &objp->resok.obj_wcc));
1116 return (xdr_wcc_data(xdrs, &objp->resfail.obj_wcc));
1121 xdr_LOOKUP3res(XDR *xdrs, LOOKUP3res *objp)
1125 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1129 return (xdr_post_op_attr(xdrs, &objp->resfail.dir_attributes));
1133 switch (xdrs->x_op) {
1135 if (!xdr_nfs_fh3_server(xdrs, &resokp->object))
1140 if (!xdr_nfs_fh3(xdrs, &resokp->object))
1144 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
1146 return (xdr_post_op_attr(xdrs, &resokp->dir_attributes));
1150 xdr_LOOKUP3vres(XDR *xdrs, LOOKUP3vres *objp)
1155 if (xdrs->x_op == XDR_FREE)
1158 if (xdrs->x_op != XDR_DECODE)
1161 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1165 return (xdr_post_op_vattr(xdrs, &objp->dir_attributes));
1167 if (!xdr_nfs_fh3(xdrs, &objp->object))
1169 if (!xdr_post_op_vattr(xdrs, &objp->obj_attributes))
1171 return (xdr_post_op_vattr(xdrs, &objp->dir_attributes));
1175 xdr_ACCESS3args(XDR *xdrs, ACCESS3args *objp)
1177 switch (xdrs->x_op) {
1180 if (!xdr_nfs_fh3(xdrs, &objp->object))
1184 if (!xdr_nfs_fh3_server(xdrs, &objp->object))
1188 return (xdr_u_int(xdrs, &objp->access));
1193 xdr_ACCESS3res(XDR *xdrs, ACCESS3res *objp)
1197 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1200 return (xdr_post_op_attr(xdrs, &objp->resfail.obj_attributes));
1204 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
1206 return (xdr_u_int(xdrs, &resokp->access));
1210 xdr_READLINK3args(XDR *xdrs, READLINK3args *objp)
1215 if ((xdrs->x_ops == &xdrrdma_ops || xdrs->x_ops == xops) &&
1216 xdrs->x_op == XDR_ENCODE) {
1219 XDR_CONTROL(xdrs, XDR_RDMA_ADD_CHUNK, &rci);
1221 if (!xdr_nfs_fh3(xdrs, (nfs_fh3 *)objp))
1227 xdr_READLINK3res(XDR *xdrs, READLINK3res *objp)
1232 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1235 return (xdr_post_op_attr(xdrs,
1240 if (!xdr_post_op_attr(xdrs, &resokp->symlink_attributes))
1242 return (xdr_string3(xdrs, &resokp->data, MAXPATHLEN));
1246 xdr_READ3args(XDR *xdrs, READ3args *objp)
1252 switch (xdrs->x_op) {
1255 if (!xdr_nfs_fh3(xdrs, &objp->file))
1259 if (!xdr_nfs_fh3_server(xdrs, &objp->file))
1263 if (!xdr_u_longlong_t(xdrs, &objp->offset))
1265 if (!xdr_u_int(xdrs, &objp->count))
1273 if (xdrs->x_ops == xops && xdrs->x_op == XDR_ENCODE) {
1276 (void) XDR_CONTROL(xdrs, XDR_RDMA_ADD_CHUNK, &rci);
1279 if (xdrs->x_ops != &xdrrdma_ops || xdrs->x_op == XDR_FREE)
1282 if (xdrs->x_op == XDR_ENCODE) {
1296 return (XDR_CONTROL(xdrs, XDR_RDMA_ADD_CHUNK, &rci));
1300 (void) XDR_CONTROL(xdrs, XDR_RDMA_GET_WCINFO, &rwci);
1308 xdr_READ3res(XDR *xdrs, READ3res *objp)
1314 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1318 return (xdr_post_op_attr(xdrs, &objp->resfail.file_attributes));
1322 if (xdr_post_op_attr(xdrs, &resokp->file_attributes) == FALSE ||
1323 xdr_u_int(xdrs, &resokp->count) == FALSE ||
1324 xdr_bool(xdrs, &resokp->eof) == FALSE) {
1328 if (xdrs->x_op == XDR_ENCODE) {
1332 if (xdrs->x_ops == &xdrmblk_ops) {
1333 if (xdrmblk_putmblk(xdrs, mp, resokp->count)) {
1361 if (xdr_u_int(xdrs, &resokp->count) == FALSE) {
1373 xdrs, resokp->count,
1389 ret = xdr_bytes(xdrs, (char **)&resokp->data.data_val,
1396 xdr_READ3vres(XDR *xdrs, READ3vres *objp)
1402 if (xdrs->x_op == XDR_FREE)
1405 if (xdrs->x_op != XDR_DECODE)
1408 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1411 if (!xdr_post_op_vattr(xdrs, &objp->pov))
1417 if (!xdr_u_int(xdrs, &objp->count))
1420 if (!xdr_bool(xdrs, &objp->eof))
1427 if (xdrs->x_ops == &xdrrdma_ops) {
1430 XDR_CONTROL(xdrs, XDR_RDMA_GET_WLIST, &cl);
1433 if (!xdr_u_int(xdrs, &ocount)) {
1459 return (xdr_bytes(xdrs, (char **)&objp->data.data_val,
1464 xdr_READ3uiores(XDR *xdrs, READ3uiores *objp)
1479 if (xdrs->x_op == XDR_FREE)
1482 if (xdrs->x_op != XDR_DECODE)
1485 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->status))
1488 if (!XDR_GETINT32(xdrs, (int32_t *)&attributes))
1496 if (!XDR_CONTROL(xdrs, XDR_SKIPBYTES, &fattr3_len))
1508 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->count))
1511 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->eof))
1514 if (xdrs->x_ops == &xdrmblk_ops) {
1515 if (!xdrmblk_getmblk(xdrs, &mp, &objp->size))
1544 if (xdrs->x_ops == &xdrrdma_ops) {
1547 XDR_CONTROL(xdrs, XDR_RDMA_GET_WLIST, &cl);
1552 if (!xdr_u_int(xdrs, &ocount)) {
1585 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->size))
1595 if ((ptr = XDR_INLINE(xdrs, size)) != NULL)
1604 if (!XDR_GETBYTES(xdrs, (caddr_t)ptr, size)) {
1615 xdr_WRITE3args(XDR *xdrs, WRITE3args *objp)
1617 switch (xdrs->x_op) {
1620 if (!xdr_nfs_fh3(xdrs, &objp->file))
1624 if (!xdr_nfs_fh3_server(xdrs, &objp->file))
1628 if (!xdr_u_longlong_t(xdrs, &objp->offset))
1630 if (!xdr_u_int(xdrs, &objp->count))
1632 if (!xdr_enum(xdrs, (enum_t *)&objp->stable))
1635 if (xdrs->x_op == XDR_DECODE) {
1636 if (xdrs->x_ops == &xdrmblk_ops) {
1637 if (xdrmblk_getmblk(xdrs, &objp->mblk,
1645 if (xdrs->x_ops == &xdrrdmablk_ops) {
1646 if (xdrrdma_getrdmablk(xdrs, &objp->rlist,
1664 if (xdrs->x_op == XDR_FREE) {
1676 return (xdr_bytes(xdrs, (char **)&objp->data.data_val,
1681 xdr_WRITE3res(XDR *xdrs, WRITE3res *objp)
1685 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1688 return (xdr_wcc_data(xdrs, &objp->resfail.file_wcc));
1692 if (!xdr_wcc_data(xdrs, &resokp->file_wcc))
1694 if (!xdr_u_int(xdrs, &resokp->count))
1696 if (!xdr_enum(xdrs, (enum_t *)&resokp->committed))
1704 return (xdr_u_longlong_t(xdrs, &resokp->verf));
1708 xdr_CREATE3args(XDR *xdrs, CREATE3args *objp)
1712 if (!xdr_diropargs3(xdrs, &objp->where))
1718 if (!xdr_enum(xdrs, (enum_t *)&howp->mode))
1723 return (xdr_sattr3(xdrs, &howp->createhow3_u.obj_attributes));
1731 return (xdr_u_longlong_t(xdrs, &howp->createhow3_u.verf));
1738 xdr_CREATE3res(XDR *xdrs, CREATE3res *objp)
1742 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1749 if (!xdr_post_op_fh3(xdrs, &resokp->obj))
1751 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
1753 return (xdr_wcc_data(xdrs, &resokp->dir_wcc));
1756 return (xdr_wcc_data(xdrs, &objp->resfail.dir_wcc));
1761 xdr_MKDIR3args(XDR *xdrs, MKDIR3args *objp)
1763 if (!xdr_diropargs3(xdrs, &objp->where))
1765 return (xdr_sattr3(xdrs, &objp->attributes));
1769 xdr_MKDIR3res(XDR *xdrs, MKDIR3res *objp)
1773 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1780 if (!xdr_post_op_fh3(xdrs, &resokp->obj))
1782 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
1784 return (xdr_wcc_data(xdrs, &resokp->dir_wcc));
1786 return (xdr_wcc_data(xdrs, &objp->resfail.dir_wcc));
1791 xdr_SYMLINK3args(XDR *xdrs, SYMLINK3args *objp)
1793 if (!xdr_diropargs3(xdrs, &objp->where))
1795 if (!xdr_sattr3(xdrs, &objp->symlink.symlink_attributes))
1797 return (xdr_string3(xdrs, &objp->symlink.symlink_data, MAXPATHLEN));
1801 xdr_SYMLINK3res(XDR *xdrs, SYMLINK3res *objp)
1805 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1811 if (!xdr_post_op_fh3(xdrs, &resokp->obj))
1813 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
1815 return (xdr_wcc_data(xdrs, &resokp->dir_wcc));
1817 return (xdr_wcc_data(xdrs, &objp->resfail.dir_wcc));
1822 xdr_MKNOD3args(XDR *xdrs, MKNOD3args *objp)
1827 if (!xdr_diropargs3(xdrs, &objp->where))
1831 if (!xdr_enum(xdrs, (enum_t *)&whatp->type))
1838 if (!xdr_sattr3(xdrs, &nod_objp->dev_attributes))
1840 if (!xdr_u_int(xdrs, &nod_objp->spec.specdata1))
1842 return (xdr_u_int(xdrs, &nod_objp->spec.specdata2));
1845 return (xdr_sattr3(xdrs, &whatp->mknoddata3_u.pipe_attributes));
1853 xdr_MKNOD3res(XDR *xdrs, MKNOD3res *objp)
1857 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1863 if (!xdr_post_op_fh3(xdrs, &resokp->obj))
1865 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
1867 return (xdr_wcc_data(xdrs, &resokp->dir_wcc));
1869 return (xdr_wcc_data(xdrs, &objp->resfail.dir_wcc));
1874 xdr_REMOVE3res(XDR *xdrs, REMOVE3res *objp)
1876 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1880 return (xdr_wcc_data(xdrs, &objp->resok.dir_wcc));
1882 return (xdr_wcc_data(xdrs, &objp->resfail.dir_wcc));
1887 xdr_RMDIR3res(XDR *xdrs, RMDIR3res *objp)
1889 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1893 return (xdr_wcc_data(xdrs, &objp->resok.dir_wcc));
1895 return (xdr_wcc_data(xdrs, &objp->resfail.dir_wcc));
1900 xdr_RENAME3args(XDR *xdrs, RENAME3args *objp)
1902 if (!xdr_diropargs3(xdrs, &objp->from))
1904 return (xdr_diropargs3(xdrs, &objp->to));
1908 xdr_RENAME3res(XDR *xdrs, RENAME3res *objp)
1913 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1920 if (!xdr_wcc_data(xdrs, &resokp->fromdir_wcc))
1922 return (xdr_wcc_data(xdrs, &resokp->todir_wcc));
1926 if (!xdr_wcc_data(xdrs, &resfailp->fromdir_wcc))
1928 return (xdr_wcc_data(xdrs, &resfailp->todir_wcc));
1933 xdr_LINK3args(XDR *xdrs, LINK3args *objp)
1935 switch (xdrs->x_op) {
1938 if (!xdr_nfs_fh3(xdrs, &objp->file))
1942 if (!xdr_nfs_fh3_server(xdrs, &objp->file))
1946 return (xdr_diropargs3(xdrs, &objp->link));
1950 xdr_LINK3res(XDR *xdrs, LINK3res *objp)
1955 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
1961 if (!xdr_post_op_attr(xdrs, &resokp->file_attributes))
1963 return (xdr_wcc_data(xdrs, &resokp->linkdir_wcc));
1967 if (!xdr_post_op_attr(xdrs, &resfailp->file_attributes))
1969 return (xdr_wcc_data(xdrs, &resfailp->linkdir_wcc));
1974 xdr_READDIR3args(XDR *xdrs, READDIR3args *objp)
1979 if (xdrs->x_op == XDR_FREE)
1982 switch (xdrs->x_op) {
1985 if (!xdr_nfs_fh3(xdrs, &objp->dir))
1989 if (!xdr_nfs_fh3_server(xdrs, &objp->dir))
1993 if ((xdrs->x_ops == &xdrrdma_ops || xdrs->x_ops == xops) &&
1994 xdrs->x_op == XDR_ENCODE) {
1997 XDR_CONTROL(xdrs, XDR_RDMA_ADD_CHUNK, &rci);
2000 if (!xdr_u_longlong_t(xdrs, &objp->cookie))
2008 if (!xdr_u_longlong_t(xdrs, &objp->cookieverf))
2010 return (xdr_u_int(xdrs, &objp->count));
2026 xdr_putdirlist(XDR *xdrs, READDIR3resok *objp)
2040 if (xdrs->x_op != XDR_ENCODE)
2096 if (!xdr_bool(xdrs, &true) ||
2097 !xdr_u_longlong_t(xdrs, &fileid) ||
2098 !xdr_bytes(xdrs, &name, &namlen, ~0) ||
2099 !xdr_u_longlong_t(xdrs, &cookie)) {
2104 if (!xdr_bool(xdrs, &false))
2106 if (!xdr_bool(xdrs, &objp->reply.eof))
2112 xdr_READDIR3res(XDR *xdrs, READDIR3res *objp)
2119 if (xdrs->x_op == XDR_DECODE)
2122 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2125 return (xdr_post_op_attr(xdrs, &objp->resfail.dir_attributes));
2129 if (!xdr_post_op_attr(xdrs, &resokp->dir_attributes))
2131 if (xdrs->x_op != XDR_ENCODE)
2139 if (!xdr_u_longlong_t(xdrs, &resokp->cookieverf))
2141 return (xdr_putdirlist(xdrs, resokp));
2145 xdr_READDIR3vres(XDR *xdrs, READDIR3vres *objp)
2154 if (xdrs->x_op == XDR_FREE)
2157 if (xdrs->x_op != XDR_DECODE)
2160 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2163 if (!xdr_post_op_vattr(xdrs, &objp->dir_attributes))
2175 if (!xdr_u_longlong_t(xdrs, &objp->cookieverf))
2187 if (!XDR_GETINT32(xdrs, (int32_t *)&valid))
2193 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->eof))
2202 if (!xdr_u_longlong_t(xdrs, (u_longlong_t *)&fileid))
2208 if (!XDR_GETINT32(xdrs, (int32_t *)&namlen))
2222 if (!xdr_opaque(xdrs, dp->d_name, namlen))
2230 if (!xdr_u_longlong_t(xdrs, (u_longlong_t *)&dp->d_off))
2243 xdr_READDIRPLUS3args(XDR *xdrs, READDIRPLUS3args *objp)
2248 if (xdrs->x_op == XDR_FREE)
2251 switch (xdrs->x_op) {
2254 if (!xdr_nfs_fh3(xdrs, &objp->dir))
2258 if (!xdr_nfs_fh3_server(xdrs, &objp->dir))
2262 if ((xdrs->x_ops == &xdrrdma_ops || xdrs->x_ops == xops) &&
2263 xdrs->x_op == XDR_ENCODE) {
2266 XDR_CONTROL(xdrs, XDR_RDMA_ADD_CHUNK, &rci);
2269 if (!xdr_u_longlong_t(xdrs, &objp->cookie))
2277 if (!xdr_u_longlong_t(xdrs, &objp->cookieverf))
2279 if (!xdr_u_int(xdrs, &objp->dircount))
2281 return (xdr_u_int(xdrs, &objp->maxcount));
2288 xdr_putdirpluslist(XDR *xdrs, READDIRPLUS3resok *objp)
2299 if (xdrs->x_op != XDR_ENCODE)
2313 if (!xdr_bool(xdrs, &true) ||
2314 !xdr_u_longlong_t(xdrs, &fileid) ||
2315 !xdr_bytes(xdrs, &name, &infop->namelen, ~0) ||
2316 !xdr_u_longlong_t(xdrs, &cookie) ||
2317 !xdr_post_op_attr(xdrs, &infop->attr) ||
2318 !xdr_post_op_fh3(xdrs, &infop->fh)) {
2327 if (!xdr_bool(xdrs, &false))
2329 if (!xdr_bool(xdrs, &objp->reply.eof))
2335 xdr_READDIRPLUS3res(XDR *xdrs, READDIRPLUS3res *objp)
2342 if (xdrs->x_op == XDR_DECODE)
2345 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2351 if (!xdr_post_op_attr(xdrs, &resokp->dir_attributes))
2359 if (!xdr_u_longlong_t(xdrs, &resokp->cookieverf))
2361 if (xdrs->x_op == XDR_ENCODE) {
2362 if (!xdr_putdirpluslist(xdrs, resokp))
2367 return (xdr_post_op_attr(xdrs, &objp->resfail.dir_attributes));
2376 xdr_READDIRPLUS3vres(XDR *xdrs, READDIRPLUS3vres *objp)
2390 if (xdrs->x_op == XDR_FREE)
2393 if (xdrs->x_op != XDR_DECODE)
2396 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->status))
2399 if (!xdr_post_op_vattr(xdrs, &objp->dir_attributes))
2411 if (!xdr_u_longlong_t(xdrs, &objp->cookieverf))
2432 if (!XDR_GETINT32(xdrs, (int32_t *)&valid))
2438 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->eof))
2447 if (!xdr_u_longlong_t(xdrs, (u_longlong_t *)&fileid))
2453 if (!XDR_GETINT32(xdrs, (int32_t *)&namlen))
2467 if (!xdr_opaque(xdrs, dp->d_name, namlen))
2475 if (!xdr_u_longlong_t(xdrs, (u_longlong_t *)&dp->d_off))
2482 if (!xdr_post_op_vattr(xdrs, &pov))
2494 if (!XDR_GETINT32(xdrs, (int32_t *)&fh_valid))
2505 if (!xdr_nfs_fh3(xdrs, &fh))
2539 xdr_FSSTAT3res(XDR *xdrs, FSSTAT3res *objp)
2543 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2546 return (xdr_post_op_attr(xdrs, &objp->resfail.obj_attributes));
2550 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
2552 if (!xdr_u_longlong_t(xdrs, &resokp->tbytes))
2554 if (!xdr_u_longlong_t(xdrs, &resokp->fbytes))
2556 if (!xdr_u_longlong_t(xdrs, &resokp->abytes))
2558 if (!xdr_u_longlong_t(xdrs, &resokp->tfiles))
2560 if (!xdr_u_longlong_t(xdrs, &resokp->ffiles))
2562 if (!xdr_u_longlong_t(xdrs, &resokp->afiles))
2564 return (xdr_u_int(xdrs, &resokp->invarsec));
2568 xdr_FSINFO3res(XDR *xdrs, FSINFO3res *objp)
2572 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2575 return (xdr_post_op_attr(xdrs, &objp->resfail.obj_attributes));
2579 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
2581 if (!xdr_u_int(xdrs, &resokp->rtmax))
2583 if (!xdr_u_int(xdrs, &resokp->rtpref))
2585 if (!xdr_u_int(xdrs, &resokp->rtmult))
2587 if (!xdr_u_int(xdrs, &resokp->wtmax))
2589 if (!xdr_u_int(xdrs, &resokp->wtpref))
2591 if (!xdr_u_int(xdrs, &resokp->wtmult))
2593 if (!xdr_u_int(xdrs, &resokp->dtpref))
2595 if (!xdr_u_longlong_t(xdrs, &resokp->maxfilesize))
2597 if (!xdr_u_int(xdrs, &resokp->time_delta.seconds))
2599 if (!xdr_u_int(xdrs, &resokp->time_delta.nseconds))
2601 return (xdr_u_int(xdrs, &resokp->properties));
2605 xdr_PATHCONF3res(XDR *xdrs, PATHCONF3res *objp)
2609 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2612 return (xdr_post_op_attr(xdrs, &objp->resfail.obj_attributes));
2616 if (!xdr_post_op_attr(xdrs, &resokp->obj_attributes))
2618 if (!xdr_u_int(xdrs, &resokp->info.link_max))
2620 if (!xdr_u_int(xdrs, &resokp->info.name_max))
2622 if (!xdr_bool(xdrs, &resokp->info.no_trunc))
2624 if (!xdr_bool(xdrs, &resokp->info.chown_restricted))
2626 if (!xdr_bool(xdrs, &resokp->info.case_insensitive))
2628 return (xdr_bool(xdrs, &resokp->info.case_preserving));
2632 xdr_COMMIT3args(XDR *xdrs, COMMIT3args *objp)
2634 if (xdrs->x_op == XDR_FREE)
2637 switch (xdrs->x_op) {
2640 if (!xdr_nfs_fh3(xdrs, &objp->file))
2644 if (!xdr_nfs_fh3_server(xdrs, &objp->file))
2648 if (!xdr_u_longlong_t(xdrs, &objp->offset))
2650 return (xdr_u_int(xdrs, &objp->count));
2654 xdr_COMMIT3res(XDR *xdrs, COMMIT3res *objp)
2658 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
2661 return (xdr_wcc_data(xdrs, &objp->resfail.file_wcc));
2665 if (!xdr_wcc_data(xdrs, &resokp->file_wcc))
2673 return (xdr_u_longlong_t(xdrs, &resokp->verf));