Lines Matching +defs:mtime +defs:error

256 	 * If none found, add the new one or return error, depending upon
516 * If no Open is found, just return error and the special stateid of all zeros.
532 int error;
636 error = nfscl_getopen(NULL, clp->nfsc_openhash, nfhp, fhlen,
638 if (error == 0 && lp != NULL && fords == 0) {
817 __unused int error, __unused int candelete, int unlocked)
837 nfscl_openrelease(struct nfsmount *nmp, struct nfsclopen *op, int error,
852 if (error && candelete && op->nfso_opencnt == 0)
866 * It always clpp with a reference count on it, unless returning an error.
876 int igotlock = 0, error, trystalecnt, clidinusedelay, i;
998 error = nfsrpc_setclient(nmp, clp, 0, NULL, cred, p);
999 if (error == NFSERR_STALECLIENTID ||
1000 error == NFSERR_STALEDONTRECOVER ||
1001 error == NFSERR_BADSESSION ||
1002 error == NFSERR_CLIDINUSE) {
1003 (void) nfs_catnap(PZERO, error, "nfs_setcl");
1004 } else if (error == NFSERR_MINORVERMISMATCH &&
1011 } while (((error == NFSERR_STALECLIENTID ||
1012 error == NFSERR_BADSESSION ||
1013 error == NFSERR_STALEDONTRECOVER) && --trystalecnt > 0) ||
1014 (error == NFSERR_CLIDINUSE && --clidinusedelay > 0) ||
1015 (error == NFSERR_MINORVERMISMATCH && tryminvers));
1016 if (error) {
1020 return (error);
1095 int error = 0, ret, donelocally = 0;
1123 error = NFSERR_INVAL;
1126 if (!error) {
1130 error = nfscl_getcl(vp->v_mount, cred, p, false, true,
1133 if (error) {
1137 return (error);
1191 error = nfscl_getopen(NULL, clp->nfsc_openhash,
1194 if (!error)
1197 if (!error && !recovery)
1198 error = nfscl_localconflict(clp, np->n_fhp->nfh_fh,
1200 if (error) {
1208 return (error);
1436 int error = 0;
1462 error = nfscl_getcl(vp->v_mount, cred, p, false, true, &clp);
1463 if (error)
1535 nfscl_lockrelease(struct nfscllockowner *lp, int error, int candelete)
1543 if (error != 0 && candelete &&
1607 int mustdelete = 0, error;
1625 error = nfsrpc_reopen(nmp, op->nfso_fh,
1627 if (error) {
2132 int i, igotlock = 0, error, trycnt, firstlock;
2165 error = nfsrpc_setclient(nmp, clp, 1, retokp, cred, p);
2166 } while ((error == NFSERR_STALECLIENTID ||
2167 error == NFSERR_BADSESSION ||
2168 error == NFSERR_STALEDONTRECOVER) && --trycnt > 0);
2169 if (error) {
2224 if (error != NFSERR_NOGRACE && error != NFSERR_BADSESSION) {
2245 error = nfscl_tryopen(nmp, NULL, op->nfso_fh,
2249 if (!error) {
2294 error = nfscl_trylock(nmp, NULL,
2298 if (error != 0)
2309 } else if (error == NFSERR_NOGRACE && !recovered_one &&
2326 if (error != 0 && error != NFSERR_BADSESSION)
2358 if (error != NFSERR_NOGRACE && error != NFSERR_BADSESSION) {
2381 error = nfscl_tryopen(nmp, NULL, nop->nfso_fh,
2407 if (error) {
2410 if (error == NFSERR_NOGRACE && !recovered_one &&
2447 error = nfscl_tryclose(op, tcred, nmp, p, true);
2448 if (error == NFSERR_GRACE)
2449 (void) nfs_catnap(PZERO, error, "nfsexcls");
2450 } while (error == NFSERR_GRACE);
2460 error = nfscl_trydelegreturn(dp, tcred, nmp, p);
2461 if (error == NFSERR_GRACE)
2462 (void) nfs_catnap(PZERO, error, "nfsexdlg");
2463 } while (error == NFSERR_GRACE);
2493 int igotlock = 0, error, trycnt;
2528 error = nfsrpc_setclient(nmp, clp, 0, NULL, cred, p);
2529 } while ((error == NFSERR_STALECLIENTID ||
2530 error == NFSERR_BADSESSION ||
2531 error == NFSERR_STALEDONTRECOVER) && --trycnt > 0);
2532 if (error) {
2549 return (error);
2726 int error, cbpathdown, islept, igotlock, ret, clearok;
2773 error = nfsrpc_renew(clp, NULL, cred, p);
2774 if (error == NFSERR_CBPATHDOWN)
2776 else if (error == NFSERR_STALECLIENTID) {
2780 } else if (error == NFSERR_EXPIRED)
3312 int error, notdecr;
3314 error = nfscl_getcl(vp->v_mount, NULL, NULL, false, true, &clp);
3315 if (error)
3316 return (error);
3389 int error;
3391 error = nfscl_getcl(vp->v_mount, NULL, NULL, false, true, &clp);
3392 if (error)
3393 return (error);
3437 error = nfsrpc_doclose(nmp, op, p, false, true);
3439 error = nfsrpc_doclose(nmp, op, p, true, true);
3441 if (error == NFSERR_DELAY) {
3553 int numops, taglen = -1, error = 0, trunc __unused;
3578 error = EBADRPC;
3586 error = nfsrv_mtostr(nd, tagstr, taglen);
3587 if (error) {
3643 error = nfsm_getfh(nd, &nfhp);
3644 if (!error)
3645 error = nfsrv_getattrbits(nd, &attrbits,
3647 if (!error) {
3651 error = NFSERR_SERVERFAULT;
3653 if (!error) {
3654 error = nfscl_ngetreopen(mp, nfhp->nfh_fh,
3656 if (!error)
3659 if (!error) {
3686 error = NFSERR_SERVERFAULT;
3695 if (!error)
3709 error = nfsm_getfh(nd, &nfhp);
3710 if (!error) {
3726 error = NFSERR_SERVERFAULT;
3750 error = NFSERR_NOMATCHLAYOUT;
3752 error = nfsm_getfh(nd, &nfhp);
3753 NFSCL_DEBUG(4, "retfile getfh=%d\n", error);
3754 if (error != 0)
3763 error = NFSERR_NOTSUPP;
3766 stateid.seqid, error);
3767 if (error == 0) {
3784 error =
3791 if (error == 0 &&
3801 error,
3804 error =
3807 error = NFSERR_NOMATCHLAYOUT;
3825 error =
3840 error = NFSERR_NOMATCHLAYOUT;
3842 error = NFSERR_NOMATCHLAYOUT;
3851 error = nfscl_layoutrecall(
3862 error = NFSERR_NOMATCHLAYOUT;
3864 error = NFSERR_NOMATCHLAYOUT;
3867 error = NFSERR_NOMATCHLAYOUT;
3875 error = NFSERR_SEQUENCEPOS;
3901 error = NFSERR_SERVERFAULT;
3902 if (error == 0) {
3904 error = nfsv4_seqsession(seqid, slotid,
3909 if (error == 0 || error == NFSERR_REPLYFROMCACHE) {
3919 KASSERT(error == NFSERR_REPLYFROMCACHE,
3939 error = NFSERR_OPNOTINSESS;
3942 error = NFSERR_NOTSUPP;
3946 if (error) {
3947 if (error == EBADRPC || error == NFSERR_BADXDR) {
3950 nd->nd_repstat = error;
3952 error = 0;
3964 if (error) {
3965 if (error == EBADRPC || error == NFSERR_BADXDR)
3968 printf("nfsv4 comperr1=%d\n", error);
4040 int error;
4061 error = vfs_busy(mp, 0);
4063 if (error != 0)
4169 int error;
4184 error = nfscl_localconflict(clp, np->n_fhp->nfh_fh, np->n_fhp->nfh_len,
4186 if (error != 0) {
4195 error = -1; /* no RPC required */
4204 error = -1;
4207 return (error);
4224 int error = 0, ret;
4296 if (!error)
4297 error = ret;
4325 if (!error)
4326 error = ret;
4345 if (ret && !error)
4346 error = ret;
4349 return (error);
4365 int error = 0, newone;
4391 error = nfscl_tryopen(nmp, vp, lop->nfso_fh, lop->nfso_fhlen,
4395 error = nfscl_tryopen(nmp, vp, np->n_v4->n4_data,
4399 if (error) {
4418 return (error);
4447 int error, newone, donelocally;
4458 error = nfscl_getbytelock(vp, off, len, lop->nfslo_type, cred, p,
4461 if (error || donelocally)
4462 return (error);
4464 error = nfscl_trylock(nmp, vp, nfhp->nfh_fh,
4467 if (error)
4469 return (error);
4483 int error;
4485 error = nfscl_ngetreopen(nmp->nm_mountp, fhp, fhlen, p, &np);
4486 if (error)
4487 return (error);
4490 error = nfscl_tryopen(nmp, vp, fhp, fhlen, fhp, fhlen, mode, op,
4493 error = nfscl_tryopen(nmp, vp, np->n_v4->n4_data,
4498 error = EINVAL;
4500 return (error);
4514 int error;
4520 error = nfsrpc_openrpc(nmp, vp, fhp, fhlen, newfhp, newfhlen,
4523 if (error == NFSERR_DELAY)
4524 (void) nfs_catnap(PZERO, error, "nfstryop");
4525 } while (error == NFSERR_DELAY);
4526 if (error == EAUTH || error == EACCES) {
4531 error = nfsrpc_openrpc(nmp, vp, fhp, fhlen, newfhp,
4534 if (error == NFSERR_DELAY)
4535 (void) nfs_catnap(PZERO, error, "nfstryop");
4536 } while (error == NFSERR_DELAY);
4538 return (error);
4552 int error;
4555 error = nfsrpc_lock(nd, nmp, vp, fhp, fhlen, nlp, newone,
4557 if (!error && nd->nd_repstat == NFSERR_DELAY)
4560 } while (!error && nd->nd_repstat == NFSERR_DELAY);
4561 if (!error)
4562 error = nd->nd_repstat;
4563 if (error == EAUTH || error == EACCES) {
4567 error = nfsrpc_lock(nd, nmp, vp, fhp, fhlen, nlp,
4569 if (!error && nd->nd_repstat == NFSERR_DELAY)
4572 } while (!error && nd->nd_repstat == NFSERR_DELAY);
4573 if (!error)
4574 error = nd->nd_repstat;
4576 return (error);
4588 int error;
4591 error = nfsrpc_delegreturn(dp, cred, nmp, p, 0);
4592 if (error == NFSERR_DELAY)
4593 (void) nfs_catnap(PZERO, error, "nfstrydp");
4594 } while (error == NFSERR_DELAY);
4595 if (error == EAUTH || error == EACCES) {
4599 error = nfsrpc_delegreturn(dp, cred, nmp, p, 1);
4600 if (error == NFSERR_DELAY)
4601 (void) nfs_catnap(PZERO, error, "nfstrydp");
4602 } while (error == NFSERR_DELAY);
4604 return (error);
4617 int error;
4620 error = nfsrpc_closerpc(nd, nmp, op, cred, p, 0);
4621 if (loop_on_delayed && error == NFSERR_DELAY)
4622 (void) nfs_catnap(PZERO, error, "nfstrycl");
4623 } while (loop_on_delayed && error == NFSERR_DELAY);
4624 if (error == EAUTH || error == EACCES) {
4628 error = nfsrpc_closerpc(nd, nmp, op, cred, p, 1);
4629 if (loop_on_delayed && error == NFSERR_DELAY)
4630 (void) nfs_catnap(PZERO, error, "nfstrycl");
4631 } while (loop_on_delayed && error == NFSERR_DELAY);
4633 return (error);
5135 * put that modtime in mtime.
5138 nfscl_deleggetmodtime(vnode_t vp, struct timespec *mtime)
5164 *mtime = dp->nfsdl_modtime;
5184 /* NFSv4.n error. */
5201 * error is returned.
5321 int error, igotlock;
5333 error = nfscl_findlayoutforio(lyp, off, rwaccess,
5335 if (error == 0)
5396 * Mark the layout to be recalled and with an error.
5406 printf("DS being disabled, error=%d\n", stat);
5724 * Put any error return on all the file returns that will
5805 int error, layouttype;
5822 error = nfsrpc_layoutcommit(nmp, lyp->nfsly_fh,
5826 NFSCL_DEBUG(4, "layoutcommit err=%d\n", error);
5827 if (error == NFSERR_NOTSUPP) {