Home
last modified time | relevance | path

Searched refs:mirrorcnt (Results 1 – 8 of 8) sorted by relevance

/freebsd/usr.sbin/pnfsdscopymr/
H A Dpnfsdscopymr.c79 int ch, fnd, fndzero, i, migrateit, mirrorcnt, mirrorit, ret; in main() local
134 mirrorcnt = xattrsize / sizeof(struct pnfsdsfile); in main()
135 xattrsize2 = mirrorcnt * sizeof(struct pnfsdsfile); in main()
136 if (mirrorcnt < 1 || xattrsize != xattrsize2) in main()
141 for (i = 0; i < mirrorcnt; i++) { in main()
149 (fndzero == 0 && mirrorcnt >= mirrorlevel) || in main()
150 (fndzero != 0 && mirrorcnt > mirrorlevel))) in main()
155 mirrorcnt < 2 || mirrorcnt > mirrorlevel)) in main()
187 for (i = 0; i < mirrorcnt; in main()
[all...]
/freebsd/usr.sbin/pnfsdsfile/
H A Dpnfsdsfile.c73 int ch, dosetxattr, i, mirrorcnt, mirrorit, quiet, zerods, zerofh; in main() local
160 mirrorcnt = xattrsize / sizeof(struct pnfsdsfile); in main()
161 xattrsize2 = mirrorcnt * sizeof(struct pnfsdsfile); in main()
162 if (mirrorcnt < 1 || xattrsize != xattrsize2) in main()
167 for (i = 0; i < mirrorcnt; i++) { in main()
210 if (zerods != 0 && mirrorcnt > 1) { in main()
325 for (i = mirrorcnt; i < mirrorit; i++) { in main()
337 if (mirrorit > mirrorcnt) { in main()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdport.c1489 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()
[all …]
H A Dnfs_nfsdstate.c235 int mirrorcnt, fhandle_t *fhp, fhandle_t *dsfhp, char *devid, fsid_t fs);
6804 int error, mirrorcnt; in nfsrv_layoutget() local
6903 error = nfsrv_dsgetdevandfh(vp, p, &mirrorcnt, dsfhp, devid); in nfsrv_layoutget()
6913 if (NFSX_V4FLEXLAYOUT(mirrorcnt) > maxcnt) in nfsrv_layoutget()
6916 lyp = nfsrv_flexlayout(nd, *iomode, mirrorcnt, in nfsrv_layoutget()
6991 nfsrv_flexlayout(struct nfsrv_descript *nd, int iomode, int mirrorcnt, in nfsrv_flexlayout() argument
6999 lyp = malloc(sizeof(struct nfslayout) + NFSX_V4FLEXLAYOUT(mirrorcnt), in nfsrv_flexlayout()
7009 lyp->lay_mirrorcnt = mirrorcnt; in nfsrv_flexlayout()
7016 *tl++ = txdr_unsigned(mirrorcnt); /* # of mirrors. */ in nfsrv_flexlayout()
7017 for (i = 0; i < mirrorcnt; i++) { in nfsrv_flexlayout()
[all …]
/freebsd/sys/fs/nfs/
H A Dnfsclstate.h318 uint16_t mirrorcnt; member
335 #define nfsfl_mirrorcnt nfsfl_un.ff.mirrorcnt
H A Dnfs.h195 int mirrorcnt; /* Number of mirrors to create on DSs */ member
/freebsd/sys/fs/nfsclient/
H A Dnfs_clrpcops.c6386 int eof, error, firstmirror, i, iolaymode, mirrorcnt, recalled, timo; in nfscl_doiods() local
6471 mirrorcnt = 1; in nfscl_doiods()
6473 (mirrorcnt = rflp->nfsfl_mirrorcnt) > 1) { in nfscl_doiods()
6475 firstmirror = arc4random() % mirrorcnt; in nfscl_doiods()
6476 mirrorcnt = firstmirror + 1; in nfscl_doiods()
6497 (mirrorcnt - 1), M_TEMP, M_WAITOK | in nfscl_doiods()
6501 for (i = firstmirror; i < mirrorcnt && error == 0; i++){ in nfscl_doiods()
6503 if (m != NULL && i < mirrorcnt - 1) in nfscl_doiods()
6547 for (i = firstmirror; i < mirrorcnt - 1 && in nfscl_doiods()
6565 if (mirrorcnt > 1 && rwaccess == in nfscl_doiods()
[all …]
/freebsd/usr.sbin/nfsd/
H A Dnfsd.c168 nfsdargs.mirrorcnt = 1; in main()
232 nfsdargs.mirrorcnt = i; in main()