Lines Matching refs:resp
267 static nfsstat4 do_rfs4_set_attrs(bitmap4 *resp, fattr4 *fattrp,
870 do_rfs4_op_secinfo(struct compound_state *cs, char *nm, SECINFO4res *resp)
1047 resp->SECINFO4resok_len = count;
1048 resp->SECINFO4resok_val = resok_val;
1109 resp->SECINFO4resok_len = ret_cnt;
1110 resp->SECINFO4resok_val = resok_val;
1129 SECINFO4res *resp = &resop->nfs_resop4_u.opsecinfo;
1145 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
1150 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
1164 *cs->statusp = resp->status = status;
1171 *cs->statusp = resp->status = NFS4ERR_INVAL;
1176 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
1186 *cs->statusp = resp->status = NFS4ERR_INVAL;
1192 *cs->statusp = resp->status = do_rfs4_op_secinfo(cs, name, resp);
1200 SECINFO4res *, resp);
1210 SECINFO4res *resp = &resop->nfs_resop4_u.opsecinfo;
1215 if (resp->status != NFS4_OK) {
1219 count = resp->SECINFO4resok_len;
1220 resok_val = resp->SECINFO4resok_val;
1232 resp->SECINFO4resok_len = 0;
1233 resp->SECINFO4resok_val = NULL;
1242 ACCESS4res *resp = &resop->nfs_resop4_u.opaccess;
1257 *cs->statusp = resp->status = NFS4ERR_ACCESS;
1262 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
1292 *cs->statusp = resp->status = puterrno4(error);
1295 resp->access = 0;
1296 resp->supported = 0;
1306 *cs->statusp = resp->status = puterrno4(EACCES);
1324 resp->access |= ACCESS4_READ;
1325 resp->supported |= ACCESS4_READ;
1331 resp->access |= ACCESS4_LOOKUP;
1332 resp->supported |= ACCESS4_LOOKUP;
1340 resp->access |=
1342 resp->supported |=
1343 resp->access & (ACCESS4_MODIFY | ACCESS4_EXTEND);
1351 resp->access |= ACCESS4_DELETE;
1352 resp->supported |= ACCESS4_DELETE;
1359 resp->access |= ACCESS4_EXECUTE;
1360 resp->supported |= ACCESS4_EXECUTE;
1366 *cs->statusp = resp->status = NFS4_OK;
1369 ACCESS4res *, resp);
1378 COMMIT4res *resp = &resop->nfs_resop4_u.opcommit;
1388 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
1392 *cs->statusp = resp->status = NFS4ERR_ACCESS;
1397 *cs->statusp = resp->status = NFS4ERR_INVAL;
1409 *cs->statusp = resp->status = puterrno4(error);
1413 *cs->statusp = resp->status = NFS4ERR_ROFS;
1419 resp->status = NFS4ERR_ISDIR;
1421 resp->status = NFS4ERR_INVAL;
1422 *cs->statusp = resp->status;
1428 *cs->statusp = resp->status = puterrno4(error);
1435 *cs->statusp = resp->status = puterrno4(error);
1439 *cs->statusp = resp->status = NFS4_OK;
1440 resp->writeverf = Write4verf;
1443 COMMIT4res *, resp);
1452 do_rfs4_op_mknod(CREATE4args *args, CREATE4res *resp, struct svc_req *req,
1466 *cs->statusp = resp->status = NFS4ERR_PERM;
1484 *cs->statusp = resp->status = NFS4ERR_BADTYPE;
1492 *cs->statusp = resp->status = NFS4ERR_INVAL;
1502 *cs->statusp = resp->status = puterrno4(error);
1518 CREATE4res *resp = &resop->nfs_resop4_u.opcreate;
1539 resp->attrset = 0;
1542 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
1551 *cs->statusp = resp->status = NFS4ERR_ACCESS;
1565 *cs->statusp = resp->status = NFS4ERR_BADTYPE;
1570 *cs->statusp = resp->status = NFS4ERR_ACCESS;
1574 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
1579 *cs->statusp = resp->status = status;
1584 *cs->statusp = resp->status = NFS4ERR_ROFS;
1593 *cs->statusp = resp->status = NFS4ERR_INVAL;
1598 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
1608 *cs->statusp = resp->status = NFS4ERR_INVAL;
1613 resp->attrset = 0;
1619 status = do_rfs4_set_attrs(&resp->attrset,
1626 *cs->statusp = resp->status = status;
1631 resp->attrset = 0;
1639 *cs->statusp = resp->status = puterrno4(error);
1644 resp->attrset = 0;
1647 NFS4_SET_FATTR4_CHANGE(resp->cinfo.before, bva.va_ctime)
1699 *cs->statusp = resp->status = NFS4ERR_INVAL;
1704 resp->attrset = 0;
1709 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
1715 resp->attrset = 0;
1723 *cs->statusp = resp->status = NFS4ERR_SERVERFAULT;
1729 resp->attrset = 0;
1774 vp = do_rfs4_op_mknod(args, resp, req, cs, vap, name);
1781 resp->attrset = 0;
1800 *cs->statusp = resp->status = puterrno4(error);
1808 if (resp->status != NFS4_OK) {
1812 resp->attrset = 0;
1826 NFS4_SET_FATTR4_CHANGE(resp->cinfo.after, ava.va_ctime);
1842 * [do_rfs4_set_attrs() only sets resp bits for
1847 nfs4_vmask_to_nmask(sarg.vap->va_mask, &resp->attrset);
1848 resp->attrset &= args->createattrs.attrmask;
1853 *cs->statusp = resp->status = puterrno4(error);
1864 resp->cinfo.atomic = TRUE;
1866 resp->cinfo.atomic = FALSE;
1878 if (resp->status != NFS4_OK) {
1886 *cs->statusp = resp->status = NFS4_OK;
1889 CREATE4res *, resp);
1912 DELEGRETURN4res *resp = &resop->nfs_resop4_u.opdelegreturn;
1920 resp->status = *cs->statusp = status;
1926 resp->status = *cs->statusp = NFS4ERR_BAD_STATEID;
1935 DELEGRETURN4res *, resp);
2307 GETATTR4res *resp = &resop->nfs_resop4_u.opgetattr;
2316 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
2321 *cs->statusp = resp->status = NFS4ERR_ACCESS;
2345 &resp->obj_attributes, &sarg);
2348 *cs->statusp = resp->status = status;
2351 GETATTR4res *, resp);
2357 GETATTR4res *resp = &resop->nfs_resop4_u.opgetattr;
2359 nfs4_fattr4_free(&resp->obj_attributes);
2367 GETFH4res *resp = &resop->nfs_resop4_u.opgetfh;
2372 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
2376 *cs->statusp = resp->status = NFS4ERR_ACCESS;
2384 *cs->statusp = resp->status = NFS4ERR_MOVED;
2393 *cs->statusp = resp->status = NFS4ERR_MOVED;
2399 resp->object.nfs_fh4_val =
2401 nfs_fh4_copy(&cs->fh, &resp->object);
2402 *cs->statusp = resp->status = NFS4_OK;
2405 GETFH4res *, resp);
2411 GETFH4res *resp = &resop->nfs_resop4_u.opgetfh;
2413 if (resp->status == NFS4_OK &&
2414 resp->object.nfs_fh4_val != NULL) {
2415 kmem_free(resp->object.nfs_fh4_val, resp->object.nfs_fh4_len);
2416 resp->object.nfs_fh4_val = NULL;
2417 resp->object.nfs_fh4_len = 0;
2430 ILLEGAL4res *resp = &resop->nfs_resop4_u.opillegal;
2433 *cs->statusp = resp->status = NFS4ERR_OP_ILLEGAL;
2446 LINK4res *resp = &resop->nfs_resop4_u.oplink;
2463 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
2470 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
2479 *cs->statusp = resp->status = NFS4ERR_ACCESS;
2484 *cs->statusp = resp->status = NFS4ERR_ACCESS;
2490 *cs->statusp = resp->status = NFS4ERR_ISDIR;
2496 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
2501 *cs->statusp = resp->status = NFS4ERR_XDEV;
2507 *cs->statusp = resp->status = status;
2513 *cs->statusp = resp->status = NFS4ERR_INVAL;
2518 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
2524 *cs->statusp = resp->status = NFS4ERR_ROFS;
2533 *cs->statusp = resp->status = puterrno4(error);
2543 *cs->statusp = resp->status = NFS4ERR_INVAL;
2548 NFS4_SET_FATTR4_CHANGE(resp->cinfo.before, bdva.va_ctime)
2570 *cs->statusp = resp->status = puterrno4(error);
2584 NFS4_SET_FATTR4_CHANGE(resp->cinfo.after, adva.va_ctime)
2593 resp->cinfo.atomic = TRUE;
2595 resp->cinfo.atomic = FALSE;
2597 *cs->statusp = resp->status = NFS4_OK;
2600 LINK4res *, resp);
2890 LOOKUP4res *resp = &resop->nfs_resop4_u.oplookup;
2901 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
2906 *cs->statusp = resp->status = NFS4ERR_SYMLINK;
2911 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
2917 *cs->statusp = resp->status = status;
2923 *cs->statusp = resp->status = NFS4ERR_INVAL;
2928 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
2938 *cs->statusp = resp->status = NFS4ERR_INVAL;
2943 *cs->statusp = resp->status = do_rfs4_op_lookup(name, req, cs);
2951 LOOKUP4res *, resp);
2959 LOOKUPP4res *resp = &resop->nfs_resop4_u.oplookupp;
2964 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
2969 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
2973 *cs->statusp = resp->status = do_rfs4_op_lookup("..", req, cs);
2979 if (resp->status == NFS4ERR_WRONGSEC) {
2980 *cs->statusp = resp->status = NFS4_OK;
2985 LOOKUPP4res *, resp);
2995 OPENATTR4res *resp = &resop->nfs_resop4_u.opopenattr;
3004 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
3010 *cs->statusp = resp->status = puterrno4(ENOTSUP);
3028 *cs->statusp = resp->status = puterrno4(EACCES);
3054 *cs->statusp = resp->status = puterrno4(EROFS);
3056 *cs->statusp = resp->status = puterrno4(ENOTSUP);
3058 *cs->statusp = resp->status = puterrno4(error);
3068 *cs->statusp = resp->status = puterrno4(error);
3082 *cs->statusp = resp->status = NFS4_OK;
3086 OPENATTR4res *, resp);
3136 READ4res *resp = &resop->nfs_resop4_u.opread;
3160 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
3164 *cs->statusp = resp->status = NFS4ERR_ACCESS;
3170 *cs->statusp = resp->status = stat;
3183 *cs->statusp = resp->status = NFS4ERR_LOCKED;
3190 *cs->statusp = resp->status = NFS4ERR_INVAL;
3207 *cs->statusp = resp->status = puterrno4(verror);
3212 *cs->statusp = resp->status =
3220 *cs->statusp = resp->status = puterrno4(error);
3225 *cs->statusp = resp->status = NFS4ERR_ACCESS;
3231 *cs->statusp = resp->status = NFS4_OK;
3232 resp->eof = TRUE;
3233 resp->data_len = 0;
3234 resp->data_val = NULL;
3235 resp->mblk = NULL;
3237 resp->wlist = args->wlist;
3238 resp->wlist_len = resp->data_len;
3239 *cs->statusp = resp->status = NFS4_OK;
3240 if (resp->wlist)
3241 clist_zero_len(resp->wlist);
3246 *cs->statusp = resp->status = NFS4_OK;
3247 resp->eof = FALSE;
3248 resp->data_len = 0;
3249 resp->data_val = NULL;
3250 resp->mblk = NULL;
3252 resp->wlist = args->wlist;
3253 resp->wlist_len = resp->data_len;
3254 if (resp->wlist)
3255 clist_zero_len(resp->wlist);
3329 *cs->statusp = resp->status = puterrno4(error);
3339 *cs->statusp = resp->status = NFS4_OK;
3342 resp->data_len = args->count - uiop->uio_resid;
3344 resp->data_val = (char *)mp->b_datap->db_base;
3345 rfs_rndup_mblks(mp, resp->data_len, loaned_buffers);
3347 resp->data_val = (caddr_t)iov.iov_base;
3350 resp->mblk = mp;
3352 if (!verror && offset + resp->data_len == va.va_size)
3353 resp->eof = TRUE;
3355 resp->eof = FALSE;
3358 if (!rdma_setup_read_data4(args, resp)) {
3359 *cs->statusp = resp->status = NFS4ERR_INVAL;
3362 resp->wlist = NULL;
3373 READ4res *, resp);
3379 READ4res *resp = &resop->nfs_resop4_u.opread;
3381 if (resp->status == NFS4_OK && resp->mblk != NULL) {
3382 freemsg(resp->mblk);
3383 resp->mblk = NULL;
3384 resp->data_val = NULL;
3385 resp->data_len = 0;
3392 READDIR4res *resp = &resop->nfs_resop4_u.opreaddir;
3394 if (resp->status == NFS4_OK && resp->mblk != NULL) {
3395 freeb(resp->mblk);
3396 resp->mblk = NULL;
3397 resp->data_len = 0;
3407 PUTPUBFH4res *resp = &resop->nfs_resop4_u.opputpubfh;
3427 *cs->statusp = resp->status = NFS4ERR_SERVERFAULT;
3433 *cs->statusp = resp->status = puterrno4(error);
3471 *cs->statusp = resp->status =
3481 if ((resp->status = call_checkauth4(cs, req)) != NFS4_OK) {
3488 *cs->statusp = resp->status = NFS4_OK;
3491 PUTPUBFH4res *, resp);
3516 PUTFH4res *resp = &resop->nfs_resop4_u.opputfh;
3534 *cs->statusp = resp->status = NFS4ERR_BADHANDLE;
3543 *cs->statusp = resp->status = NFS4ERR_STALE;
3551 if (! (cs->vp = nfs4_fhtovp(&args->object, cs->exi, &resp->status))) {
3552 *cs->statusp = resp->status;
3556 if ((resp->status = call_checkauth4(cs, req)) != NFS4_OK) {
3563 *cs->statusp = resp->status = NFS4_OK;
3568 PUTFH4res *, resp);
3576 PUTROOTFH4res *resp = &resop->nfs_resop4_u.opputrootfh;
3601 *cs->statusp = resp->status = puterrno4(error);
3617 *cs->statusp = resp->status = NFS4ERR_SERVERFAULT;
3627 *cs->statusp = resp->status = puterrno4(error);
3637 if ((resp->status = call_checkauth4(cs, req)) != NFS4_OK) {
3644 *cs->statusp = resp->status = NFS4_OK;
3648 PUTROOTFH4res *, resp);
3736 READLINK4res *resp = &resop->nfs_resop4_u.opreadlink;
3752 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
3757 *cs->statusp = resp->status = NFS4ERR_ACCESS;
3771 *cs->statusp = resp->status = NFS4ERR_ISDIR;
3776 *cs->statusp = resp->status = NFS4ERR_INVAL;
3785 *cs->statusp = resp->status = puterrno4(error);
3790 *cs->statusp = resp->status = NFS4ERR_ACCESS;
3832 *cs->statusp = resp->status = puterrno4(error);
3851 (void) str_to_utf8(name, (utf8string *)&resp->link);
3856 *cs->statusp = resp->status = NFS4_OK;
3860 READLINK4res *, resp);
3866 READLINK4res *resp = &resop->nfs_resop4_u.opreadlink;
3867 utf8string *symlink = (utf8string *)&resp->link;
3891 RELEASE_LOCKOWNER4res *resp = &resop->nfs_resop4_u.oprelease_lockowner;
3908 *cs->statusp = resp->status =
3916 *cs->statusp = resp->status = NFS4_OK;
3927 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
3960 *cs->statusp = resp->status = NFS4ERR_LOCKS_HELD;
4014 *cs->statusp = resp->status = NFS4_OK;
4018 cs, RELEASE_LOCKOWNER4res *, resp);
4063 REMOVE4res *resp = &resop->nfs_resop4_u.opremove;
4082 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
4087 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4096 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4101 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
4107 *cs->statusp = resp->status = status;
4116 *cs->statusp = resp->status = NFS4ERR_INVAL;
4121 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
4127 *cs->statusp = resp->status = NFS4ERR_ROFS;
4137 *cs->statusp = resp->status = NFS4ERR_INVAL;
4154 *cs->statusp = resp->status = NFS4ERR_DELAY;
4164 *cs->statusp = resp->status = error;
4175 *cs->statusp = resp->status = NFS4ERR_FILE_OPEN;
4199 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4219 *cs->statusp = resp->status = puterrno4(error);
4232 NFS4_SET_FATTR4_CHANGE(resp->cinfo.before, bdva.va_ctime)
4298 *cs->statusp = resp->status = puterrno4(error);
4324 NFS4_SET_FATTR4_CHANGE(resp->cinfo.after, adva.va_ctime)
4334 resp->cinfo.atomic = TRUE;
4336 resp->cinfo.atomic = FALSE;
4338 *cs->statusp = resp->status = NFS4_OK;
4342 REMOVE4res *, resp);
4357 RENAME4res *resp = &resop->nfs_resop4_u.oprename;
4386 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
4393 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
4398 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4407 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4416 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4421 *cs->statusp = resp->status = NFS4ERR_NOTDIR;
4426 *cs->statusp = resp->status = NFS4ERR_XDEV;
4432 *cs->statusp = resp->status = status;
4438 *cs->statusp = resp->status = status;
4444 *cs->statusp = resp->status = NFS4ERR_INVAL;
4453 *cs->statusp = resp->status = NFS4ERR_INVAL;
4460 *cs->statusp = resp->status = NFS4ERR_INVAL;
4470 *cs->statusp = resp->status = NFS4ERR_INVAL;
4481 *cs->statusp = resp->status = NFS4ERR_NAMETOOLONG;
4489 *cs->statusp = resp->status = NFS4ERR_ROFS;
4509 *cs->statusp = resp->status = NFS4ERR_ACCESS;
4525 *cs->statusp = resp->status = NFS4ERR_DELAY;
4531 *cs->statusp = resp->status = puterrno4(error);
4548 *cs->statusp = resp->status = NFS4ERR_DELAY;
4560 *cs->statusp = resp->status = NFS4ERR_FILE_OPEN;
4569 *cs->statusp = resp->status = NFS4ERR_FILE_OPEN;
4582 *cs->statusp = resp->status = puterrno4(error);
4586 NFS4_SET_FATTR4_CHANGE(resp->source_cinfo.before, obdva.va_ctime)
4587 NFS4_SET_FATTR4_CHANGE(resp->target_cinfo.before, nbdva.va_ctime)
4660 *cs->statusp = resp->status = puterrno4(error);
4680 NFS4_SET_FATTR4_CHANGE(resp->source_cinfo.after, oadva.va_ctime)
4681 NFS4_SET_FATTR4_CHANGE(resp->target_cinfo.after, nadva.va_ctime)
4690 resp->source_cinfo.atomic = TRUE;
4692 resp->source_cinfo.atomic = FALSE;
4696 resp->target_cinfo.atomic = TRUE;
4698 resp->target_cinfo.atomic = FALSE;
4726 *cs->statusp = resp->status = NFS4_OK;
4729 RENAME4res *, resp);
4756 RENAME4res *, resp);
4765 RENEW4res *resp = &resop->nfs_resop4_u.oprenew;
4772 *cs->statusp = resp->status =
4779 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
4788 *cs->statusp = resp->status = NFS4ERR_CB_PATH_DOWN;
4790 *cs->statusp = resp->status = NFS4_OK;
4798 RENEW4res *, resp);
4806 RESTOREFH4res *resp = &resop->nfs_resop4_u.oprestorefh;
4812 *cs->statusp = resp->status = NFS4ERR_RESTOREFH;
4822 *cs->statusp = resp->status = NFS4_OK;
4827 RESTOREFH4res *, resp);
4835 SAVEFH4res *resp = &resop->nfs_resop4_u.opsavefh;
4841 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
4858 *cs->statusp = resp->status = NFS4_OK;
4862 SAVEFH4res *, resp);
4883 bitmap4 *resp, struct nfs4_ntov_table *ntovp)
4901 if (resp == NULL)
4925 if (resp == NULL)
4935 if (resp == NULL && !getsb && (sva_mask == 0))
4957 if (resp != NULL) {
4961 *resp |= nfs4_ntov_map[k].fbit;
5032 do_rfs4_set_attrs(bitmap4 *resp, fattr4 *fattrp, struct compound_state *cs,
5055 if (resp)
5056 *resp = 0;
5060 if (resp)
5061 *resp = 0;
5108 &xdr, resp ? resp : NULL, na);
5126 do_rfs4_op_setattr(bitmap4 *resp, fattr4 *fattrp, struct compound_state *cs,
5144 *resp = 0;
5148 status = do_rfs4_set_attrs(resp, fattrp, cs, &sarg, &ntov,
5296 *resp |= FATTR4_ACL_MASK;
5298 (void) rfs4_verify_attr(&sarg, resp, &ntov);
5323 (void) rfs4_verify_attr(&sarg, resp, &ntov);
5332 nfs4_vmask_to_nmask_set(sarg.vap->va_mask, resp);
5345 *resp &= fattrp->attrmask;
5361 SETATTR4res *resp = &resop->nfs_resop4_u.opsetattr;
5368 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
5377 *cs->statusp = resp->status = NFS4ERR_ACCESS;
5381 resp->attrsset = 0;
5384 *cs->statusp = resp->status = NFS4ERR_ROFS;
5398 *cs->statusp = resp->status = NFS4ERR_ACCESS;
5404 *cs->statusp = resp->status =
5405 do_rfs4_op_setattr(&resp->attrsset, &args->obj_attributes, cs,
5410 SETATTR4res *, resp);
5425 VERIFY4res *resp = &resop->nfs_resop4_u.opverify;
5436 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
5443 resp->status = do_rfs4_set_attrs(NULL, &args->obj_attributes, cs,
5445 if (resp->status != NFS4_OK) {
5450 if (resp->status == -1)
5451 resp->status = NFS4ERR_NOT_SAME;
5457 resp->status = NFS4_OK;
5460 resp->status = NFS4ERR_NOT_SAME;
5463 resp->status = puterrno4(error);
5467 *cs->statusp = resp->status;
5471 VERIFY4res *, resp);
5486 NVERIFY4res *resp = &resop->nfs_resop4_u.opnverify;
5497 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
5499 NVERIFY4res *, resp);
5505 resp->status = do_rfs4_set_attrs(NULL, &args->obj_attributes, cs,
5507 if (resp->status != NFS4_OK) {
5512 if (resp->status == -1)
5513 resp->status = NFS4_OK;
5519 resp->status = NFS4ERR_SAME;
5522 resp->status = NFS4_OK;
5525 resp->status = puterrno4(error);
5529 *cs->statusp = resp->status;
5533 NVERIFY4res *, resp);
5547 WRITE4res *resp = &resop->nfs_resop4_u.opwrite;
5568 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
5572 *cs->statusp = resp->status = NFS4ERR_ACCESS;
5580 *cs->statusp = resp->status = stat;
5593 *cs->statusp = resp->status = NFS4ERR_LOCKED;
5606 *cs->statusp = resp->status = puterrno4(error);
5611 *cs->statusp = resp->status = NFS4ERR_ROFS;
5616 *cs->statusp = resp->status =
5623 *cs->statusp = resp->status = puterrno4(error);
5628 *cs->statusp = resp->status = NFS4ERR_ACCESS;
5633 *cs->statusp = resp->status = NFS4_OK;
5634 resp->count = 0;
5635 resp->committed = args->stable;
5636 resp->writeverf = Write4verf;
5702 *cs->statusp = resp->status = NFS4ERR_INVAL;
5720 *cs->statusp = resp->status = puterrno4(error);
5724 *cs->statusp = resp->status = NFS4_OK;
5725 resp->count = args->data_len - uio.uio_resid;
5728 resp->committed = UNSTABLE4;
5730 resp->committed = FILE_SYNC4;
5732 resp->writeverf = Write4verf;
5739 WRITE4res *, resp);
5747 rfs4_compound(COMPOUND4args *args, COMPOUND4res *resp, struct exportinfo *exi,
5759 resp->tag.utf8string_val =
5761 resp->tag.utf8string_len = args->tag.utf8string_len;
5762 bcopy(args->tag.utf8string_val, resp->tag.utf8string_val,
5763 resp->tag.utf8string_len);
5765 cs.statusp = &resp->status;
5767 resp->array = NULL;
5768 resp->array_len = 0;
5776 resp->status = NFS4ERR_MINOR_VERS_MISMATCH;
5778 &cs, COMPOUND4res *, resp);
5783 resp->status = NFS4_OK;
5798 &cs, COMPOUND4res *, resp);
5804 resp->array_len = args->array_len;
5805 resp->array = kmem_zalloc(args->array_len * sizeof (nfs_resop4),
5845 resop = &resp->array[i];
5884 bcopy(resp->array,
5886 kmem_free(resp->array,
5889 resp->array_len = i + 1;
5890 resp->array = new_res;
5897 COMPOUND4res *, resp);
5926 rfs4_compound_free(COMPOUND4res *resp)
5930 if (resp->tag.utf8string_val) {
5931 UTF8STRING_FREE(resp->tag)
5934 for (i = 0; i < resp->array_len; i++) {
5938 resop = &resp->array[i];
5944 if (resp->array != NULL) {
5945 kmem_free(resp->array, resp->array_len * sizeof (nfs_resop4));
6507 * [do_rfs4_set_attrs() only sets resp bits for
6695 OPEN4res *resp, int deleg_cur)
6716 resp->status = NFS4ERR_RESOURCE;
6717 DTRACE_PROBE1(nfss__e__do__open1, nfsstat4, resp->status);
6723 resp->status = NFS4ERR_RESOURCE;
6724 DTRACE_PROBE1(nfss__e__do__open2, nfsstat4, resp->status);
6733 resp->status = status;
6780 resp->status = err;
6814 resp->status = NFS4ERR_OLD_STATEID;
6832 resp->status = NFS4ERR_DELAY;
6868 resp->status = NFS4ERR_DELAY;
6870 resp->status = NFS4ERR_SERVERFAULT;
6913 resp->stateid = sp->rs_stateid.stateid;
6919 rfs4_set_deleg_response(dsp, &resp->delegation, NULL, recall);
6926 resp->status = NFS4_OK;
6932 OPEN4args *args, rfs4_openowner_t *oo, OPEN4res *resp)
6934 change_info4 *cinfo = &resp->cinfo;
6935 bitmap4 *attrset = &resp->attrset;
6938 resp->status = rfs4_lookupfile(&args->open_claim4_u.file,
6946 resp->status = rfs4_createfile(args, req, cs, cinfo, attrset,
6950 if (resp->status == NFS4_OK) {
6956 args->share_access, args->share_deny, resp, 0);
6962 if (resp->status != NFS4_OK && resp->attrset) {
6963 resp->attrset = 0;
6967 *cs->statusp = resp->status;
6976 OPEN4args *args, rfs4_openowner_t *oo, OPEN4res *resp)
6978 change_info4 *cinfo = &resp->cinfo;
6986 resp->status = NFS4ERR_ISDIR;
6988 resp->status = NFS4ERR_SYMLINK;
6990 resp->status = NFS4ERR_INVAL;
6997 resp->status = puterrno4(error);
7011 resp->status = check_open_access(args->share_access, cs, req);
7012 if (resp->status != NFS4_OK) {
7026 args->share_access, args->share_deny, resp, 0);
7031 OPEN4args *args, rfs4_openowner_t *oo, OPEN4res *resp)
7054 resp->status = status;
7072 *cs->statusp = resp->status = puterrno4(error);
7080 args->share_access, args->share_deny, resp, 1);
7086 OPEN4args *args, rfs4_openowner_t *oo, OPEN4res *resp)
7106 resp->status = rfs4_lookupfile(&args->open_claim4_u.file_delegate_prev,
7107 req, cs, args->share_access, &resp->cinfo);
7109 if (resp->status != NFS4_OK) {
7116 resp->status = NFS4ERR_RESOURCE;
7117 DTRACE_PROBE1(nfss__e__do_opendelprev1, nfsstat4, resp->status);
7123 resp->status = NFS4ERR_SERVERFAULT;
7124 DTRACE_PROBE1(nfss__e__do_opendelprev2, nfsstat4, resp->status);
7141 resp->status = NFS4ERR_SERVERFAULT;
7151 resp->status = NFS4ERR_SERVERFAULT;
7157 resp->stateid = sp->rs_stateid.stateid;
7159 resp->delegation.delegation_type = dsp->rds_dtype;
7163 &resp->delegation.open_delegation4_u.read;
7170 &resp->delegation.open_delegation4_u.write;
7283 OPEN4res *resp = &resop->nfs_resop4_u.opopen;
7296 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
7306 *cs->statusp = resp->status =
7313 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
7327 *cs->statusp = resp->status = NFS4ERR_RESOURCE;
7349 resp->status = NFS4ERR_BAD_SEQID;
7373 *cs->statusp = resp->status = NFS4ERR_GRACE;
7383 *cs->statusp = resp->status = NFS4ERR_NO_GRACE;
7392 *cs->statusp = resp->status = NFS4ERR_NO_GRACE;
7406 resp->rflags |= OPEN4_RESULT_CONFIRM;
7408 resp->rflags |= OPEN4_RESULT_LOCKTYPE_POSIX;
7415 *cs->statusp = resp->status = NFS4ERR_ACCESS;
7427 *cs->statusp = resp->status = NFS4ERR_INVAL;
7435 resp->attrset = 0;
7439 rfs4_do_opennull(cs, req, args, oo, resp);
7442 rfs4_do_openprev(cs, req, args, oo, resp);
7445 rfs4_do_opendelcur(cs, req, args, oo, resp);
7448 rfs4_do_opendelprev(cs, req, args, oo, resp);
7451 resp->status = NFS4ERR_INVAL;
7459 switch (resp->status) {
7488 resp->status == NFS4_OK &&
7503 resp->status = NFS4ERR_STALE;
7510 &resp->status);
7536 if (resp->status != NFS4_OK && oo->ro_need_confirm)
7543 if (resp->status == NFS4_OK && oo->ro_postpone_confirm) {
7551 *cs->statusp = resp->status;
7558 OPEN4res *, resp);
7567 OPEN_CONFIRM4res *resp = &resop->nfs_resop4_u.opopen_confirm;
7575 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
7580 *cs->statusp = resp->status =
7587 *cs->statusp = resp->status = status;
7594 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
7605 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
7614 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
7617 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
7620 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
7623 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
7626 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
7638 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
7643 * resp->status is already set.
7645 *cs->statusp = resp->status;
7653 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
7656 *cs->statusp = resp->status = NFS4_OK;
7659 resp->open_stateid = sp->rs_stateid.stateid;
7667 *cs->statusp = resp->status = NFS4ERR_SERVERFAULT;
7675 OPEN_CONFIRM4res *, resp);
7684 OPEN_DOWNGRADE4res *resp = &resop->nfs_resop4_u.opopen_downgrade;
7696 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
7701 *cs->statusp = resp->status = NFS4ERR_INVAL;
7707 *cs->statusp = resp->status = status;
7714 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
7725 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
7730 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
7733 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
7736 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
7739 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
7742 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
7755 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
7760 * resp->status is already set.
7762 *cs->statusp = resp->status;
7779 *cs->statusp = resp->status = NFS4ERR_INVAL;
7801 *cs->statusp = resp->status = NFS4ERR_INVAL;
7817 *cs->statusp = resp->status = NFS4ERR_SERVERFAULT;
7901 resp->open_stateid = sp->rs_stateid.stateid;
7905 *cs->statusp = resp->status = NFS4_OK;
7917 OPEN_DOWNGRADE4res *, resp);
8260 CLOSE4res *resp = &resop->nfs_resop4_u.opclose;
8268 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
8274 *cs->statusp = resp->status = status;
8281 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
8292 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
8297 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
8300 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
8303 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
8306 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
8309 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
8322 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
8327 * resp->status is already set.
8329 *cs->statusp = resp->status;
8343 resp->open_stateid = sp->rs_stateid.stateid;
8353 *cs->statusp = resp->status = status;
8360 CLOSE4res *, resp);
8795 LOCK4res *resp = &resop->nfs_resop4_u.oplock;
8812 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
8814 cs, LOCK4res *, resp);
8829 *cs->statusp = resp->status = status;
8831 cs, LOCK4res *, resp);
8838 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
8840 cs, LOCK4res *, resp);
8849 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
8852 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
8855 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
8858 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
8861 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
8877 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
8898 *cs->statusp = resp->status = NFS4ERR_RESOURCE;
8915 *cs->statusp = resp->status = NFS4ERR_SERVERFAULT;
8934 resp->status = NFS4ERR_BAD_SEQID;
8961 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
8969 *cs->statusp = resp->status;
9003 *cs->statusp = resp->status = status;
9005 cs, LOCK4res *, resp);
9013 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
9015 cs, LOCK4res *, resp);
9051 if (resp->status != NFS4_OK) {
9057 *cs->statusp = resp->status;
9068 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
9076 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
9079 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
9082 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
9085 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
9098 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
9102 *cs->statusp = status = resp->status;
9153 *cs->statusp = resp->status = status;
9156 resp->LOCK4res_u.lock_stateid = lsp->rls_lockid.stateid;
9187 LOCK4res *, resp);
9219 LOCKU4res *resp = &resop->nfs_resop4_u.oplocku;
9228 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
9230 LOCKU4res *, resp);
9235 *cs->statusp = resp->status = status;
9237 LOCKU4res *, resp);
9244 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
9246 LOCKU4res *, resp);
9257 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
9262 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
9265 *cs->statusp = resp->status = NFS4ERR_BAD_STATEID;
9268 *cs->statusp = resp->status = NFS4ERR_EXPIRED;
9271 *cs->statusp = resp->status = NFS4ERR_OLD_STATEID;
9282 *cs->statusp = resp->status = NFS4ERR_BAD_SEQID;
9286 *cs->statusp = status = resp->status;
9319 *cs->statusp = resp->status = status;
9322 resp->lock_stateid = lsp->rls_lockid.stateid;
9331 LOCKU4res *, resp);
9346 LOCKT4res *resp = &resop->nfs_resop4_u.oplockt;
9362 *cs->statusp = resp->status = NFS4ERR_NOFILEHANDLE;
9372 *cs->statusp = resp->status = NFS4ERR_ISDIR;
9374 *cs->statusp = resp->status = NFS4ERR_INVAL;
9384 *cs->statusp = resp->status =
9395 *cs->statusp = resp->status = NFS4ERR_STALE_CLIENTID;
9400 *cs->statusp = resp->status = NFS4ERR_GRACE;
9406 resp->status = NFS4_OK;
9422 *cs->statusp = resp->status = NFS4ERR_INVAL;
9433 if ((resp->status =
9453 resp->status = NFS4ERR_INVAL;
9466 resp->status = NFS4_OK;
9468 if (lock_denied(&resp->denied, &flk) == NFS4ERR_EXPIRED)
9470 resp->status = NFS4ERR_DENIED;
9474 resp->status = NFS4ERR_INVAL;
9477 resp->status = NFS4ERR_NOTSUPP;
9482 resp->status = NFS4ERR_SERVERFAULT;
9489 *cs->statusp = resp->status;
9492 LOCKT4res *, resp);