Lines Matching refs:mirrorcnt

1489 	int error = 0, mirrorcnt;  in nfsvno_removesub()  local
1501 nfsrv_pnfsremovesetup(vp, p, dsdvp, &mirrorcnt, fname, &fh); in nfsvno_removesub()
1505 nfsrv_pnfsremove(dsdvp, mirrorcnt, fname, &fh, p); in nfsvno_removesub()
1564 int error = 0, mirrorcnt; in nfsvno_rename() local
1646 nfsrv_pnfsremovesetup(tvp, p, dsdvp, &mirrorcnt, fname, &fh); in nfsvno_rename()
1674 nfsrv_pnfsremove(dsdvp, mirrorcnt, fname, &fh, p); in nfsvno_rename()
3842 nfsdarg.mirrorcnt = 1; in nfssvc_nfsd()
3852 nfsdarg.mirrorcnt >= 1 && in nfssvc_nfsd()
3853 nfsdarg.mirrorcnt <= NFSDEV_MAXMIRRORS && in nfssvc_nfsd()
3859 nfsdarg.mdspathlen, nfsdarg.mirrorcnt); in nfssvc_nfsd()
3907 nfsdarg.mirrorcnt = 1; in nfssvc_nfsd()
4435 int dsdir[NFSDEV_MAXMIRRORS], error, i, mirrorcnt, ret; in nfsrv_pnfscreate() local
4439 mirrorcnt = 1; in nfsrv_pnfscreate()
4474 dsdir[mirrorcnt] = i; in nfsrv_pnfscreate()
4475 dvp[mirrorcnt] = tds->nfsdev_dsdir[i]; in nfsrv_pnfscreate()
4476 mirrorcnt++; in nfsrv_pnfscreate()
4477 if (mirrorcnt >= nfsrv_maxpnfsmirror) in nfsrv_pnfscreate()
4487 if (mirrorcnt > 1) in nfsrv_pnfscreate()
4488 tdsc = dsc = malloc(sizeof(*dsc) * (mirrorcnt - 1), M_TEMP, in nfsrv_pnfscreate()
4519 for (i = 0; i < mirrorcnt - 1 && error == 0; i++, tpf++, tdsc++) { in nfsrv_pnfscreate()
4550 tpf->dsf_dir = dsdir[mirrorcnt - 1]; in nfsrv_pnfscreate()
4551 error = nfsrv_dscreate(dvp[mirrorcnt - 1], vap, &va, &fh, tpf, in nfsrv_pnfscreate()
4553 if (failpos == -1 && mirrorcnt > 1 && nfsds_failerr(error)) { in nfsrv_pnfscreate()
4554 failpos = mirrorcnt - 1; in nfsrv_pnfscreate()
4562 for (tdsc = dsc, i = 0; i < mirrorcnt - 1; i++, tdsc++) { in nfsrv_pnfscreate()
4601 mirrorcnt, nfsrv_maxpnfsmirror); in nfsrv_pnfscreate()
4606 tpf = pf + mirrorcnt; in nfsrv_pnfscreate()
4607 for (i = mirrorcnt; i < nfsrv_maxpnfsmirror; i++, tpf++) { in nfsrv_pnfscreate()
4750 nfsrv_pnfsremove(struct vnode **dvp, int mirrorcnt, char *fname, fhandle_t *fhp, in nfsrv_pnfsremove() argument
4761 if (mirrorcnt > 1) in nfsrv_pnfsremove()
4762 dsrm = malloc(sizeof(*dsrm) * mirrorcnt - 1, M_TEMP, M_WAITOK); in nfsrv_pnfsremove()
4768 for (tdsrm = dsrm, i = 0; i < mirrorcnt - 1; i++, tdsrm++) { in nfsrv_pnfsremove()
4787 ret = nfsrv_dsremove(dvp[mirrorcnt - 1], fname, tcred, p); in nfsrv_pnfsremove()
4788 if (failpos == -1 && mirrorcnt > 1 && nfsds_failerr(ret)) in nfsrv_pnfsremove()
4789 failpos = mirrorcnt - 1; in nfsrv_pnfsremove()
4794 for (tdsrm = dsrm, i = 0; i < mirrorcnt - 1; i++, tdsrm++) { in nfsrv_pnfsremove()
4898 int buflen, error, failpos, i, mirrorcnt, origmircnt, trycnt; in nfsrv_proxyds() local
4978 &mirrorcnt, p, dvp, fh, NULL, NULL, NULL, NULL, NULL, in nfsrv_proxyds()
4981 for (i = 0; i < mirrorcnt; i++) in nfsrv_proxyds()
4990 origmircnt = mirrorcnt; in nfsrv_proxyds()
5007 if (nfsds_failerr(error) && mirrorcnt > 1) { in nfsrv_proxyds()
5019 &nmp[0], mirrorcnt, mpp, cp, &failpos); in nfsrv_proxyds()
5022 mirrorcnt, nap, &failpos); in nfsrv_proxyds()
5025 mirrorcnt, aclp, &failpos); in nfsrv_proxyds()
5029 if (nfsds_failerr(error) && mirrorcnt > 1) { in nfsrv_proxyds()
5041 &nmp[0], mirrorcnt, &failpos); in nfsrv_proxyds()
5044 vp, &nmp[0], mirrorcnt, &failpos); in nfsrv_proxyds()
5046 error = nfsrv_getattrdsrpc(&fh[mirrorcnt - 1], cred, p, in nfsrv_proxyds()
5047 vp, nmp[mirrorcnt - 1], nap); in nfsrv_proxyds()
5048 if (nfsds_failerr(error) && mirrorcnt > 1) { in nfsrv_proxyds()
5054 failpos = mirrorcnt - 1; in nfsrv_proxyds()
5079 for (i = 0; i < mirrorcnt; i++) in nfsrv_proxyds()
5117 int error, fhiszero, fnd, gotone, i, mirrorcnt; in nfsrv_dsgetsockmnt() local
5135 mirrorcnt = *buflenp / sizeof(*pf); in nfsrv_dsgetsockmnt()
5136 if (error == 0 && (mirrorcnt < 1 || mirrorcnt > NFSDEV_MAXMIRRORS || in nfsrv_dsgetsockmnt()
5137 *buflenp != sizeof(*pf) * mirrorcnt)) in nfsrv_dsgetsockmnt()
5144 for (i = 0; i < mirrorcnt; i++, pf++) { in nfsrv_dsgetsockmnt()
5159 NFSD_DEBUG(4, "nfsrv_dsgetsockmnt: mirrorcnt=%d err=%d\n", mirrorcnt, in nfsrv_dsgetsockmnt()
5161 for (i = 0; i < mirrorcnt && error == 0; i++, pf++) { in nfsrv_dsgetsockmnt()
5589 NFSPROC_T *p, struct vnode *vp, struct nfsmount **nmpp, int mirrorcnt, in nfsrv_writedsrpc() argument
5600 if (mirrorcnt > 1) in nfsrv_writedsrpc()
5601 tdrpc = drpc = malloc(sizeof(*drpc) * (mirrorcnt - 1), M_TEMP, in nfsrv_writedsrpc()
5613 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_writedsrpc()
5643 if (nfsds_failerr(ret) && *failposp == -1 && mirrorcnt > 1) in nfsrv_writedsrpc()
5644 *failposp = mirrorcnt - 1; in nfsrv_writedsrpc()
5654 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_writedsrpc()
5756 NFSPROC_T *p, struct vnode *vp, struct nfsmount **nmpp, int mirrorcnt, in nfsrv_allocatedsrpc() argument
5765 if (mirrorcnt > 1) in nfsrv_allocatedsrpc()
5766 tdrpc = drpc = malloc(sizeof(*drpc) * (mirrorcnt - 1), M_TEMP, in nfsrv_allocatedsrpc()
5774 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_allocatedsrpc()
5802 if (nfsds_failerr(ret) && *failposp == -1 && mirrorcnt > 1) in nfsrv_allocatedsrpc()
5803 *failposp = mirrorcnt - 1; in nfsrv_allocatedsrpc()
5813 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_allocatedsrpc()
5937 NFSPROC_T *p, struct vnode *vp, struct nfsmount **nmpp, int mirrorcnt, in nfsrv_deallocatedsrpc() argument
5946 if (mirrorcnt > 1) in nfsrv_deallocatedsrpc()
5947 tdrpc = drpc = malloc(sizeof(*drpc) * (mirrorcnt - 1), M_TEMP, in nfsrv_deallocatedsrpc()
5955 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_deallocatedsrpc()
5983 if (nfsds_failerr(ret) && *failposp == -1 && mirrorcnt > 1) in nfsrv_deallocatedsrpc()
5984 *failposp = mirrorcnt - 1; in nfsrv_deallocatedsrpc()
5994 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_deallocatedsrpc()
6121 struct vnode *vp, struct nfsmount **nmpp, int mirrorcnt, in nfsrv_setattrdsrpc() argument
6130 if (mirrorcnt > 1) in nfsrv_setattrdsrpc()
6131 tdrpc = drpc = malloc(sizeof(*drpc) * (mirrorcnt - 1), M_TEMP, in nfsrv_setattrdsrpc()
6139 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_setattrdsrpc()
6167 if (nfsds_failerr(ret) && *failposp == -1 && mirrorcnt > 1) in nfsrv_setattrdsrpc()
6168 *failposp = mirrorcnt - 1; in nfsrv_setattrdsrpc()
6178 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_setattrdsrpc()
6270 struct vnode *vp, struct nfsmount **nmpp, int mirrorcnt, struct acl *aclp, in nfsrv_setacldsrpc() argument
6278 if (mirrorcnt > 1) in nfsrv_setacldsrpc()
6279 tdrpc = drpc = malloc(sizeof(*drpc) * (mirrorcnt - 1), M_TEMP, in nfsrv_setacldsrpc()
6287 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_setacldsrpc()
6315 if (nfsds_failerr(ret) && *failposp == -1 && mirrorcnt > 1) in nfsrv_setacldsrpc()
6316 *failposp = mirrorcnt - 1; in nfsrv_setacldsrpc()
6324 for (i = 0; i < mirrorcnt - 1; i++, tdrpc++) { in nfsrv_setacldsrpc()