Lines Matching full:spec
137 static enum tryret nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec,
147 char *host, *mntname, *p, *spec, *tmp;
444 spec = *argv++;
472 if (!getnfsargs(&spec, &host, &iov, &iovlen))
490 } else if (mountmode != V4 && !add_mtab(host, spec)) {
492 warnx("can't update %s for %s:%s", PATH_MOUNTTAB, host, spec);
587 char *hostp, *delimp, *errstr, *spec;
591 spec = *specp;
592 if (*spec == '[' && (delimp = strchr(spec + 1, ']')) != NULL &&
594 hostp = spec + 1;
595 spec = delimp + 2;
597 } else if ((delimp = strrchr(spec, ':')) != NULL) {
598 hostp = spec;
599 spec = delimp + 1;
600 } else if ((delimp = strrchr(spec, '@')) != NULL) {
614 for (speclen = strlen(spec);
615 speclen > 1 && spec[speclen - 1] == '/';
617 spec[speclen - 1] = '\0';
618 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) {
619 warnx("%s:%s: %s", hostp, spec, strerror(ENAMETOOLONG));
632 memmove(nam + len + offset, spec, speclen);
673 hostp, spec);
693 ret = nfs_tryproto(ai, hostp, spec, &errstr, iov,
718 hostp, spec);
734 *specp = spec;
752 nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec, char **errstr,
835 netid, hostp, spec,
847 hostp, spec, clnt_spcreateerror("nfsd: RPCPROG_NFS"));
862 spec);
879 hostp, spec, clnt_sperror(clp, "NFSPROC_NULL"));
906 build_iovec(iov, iovlen, "dirpath", spec, (size_t)-1);
953 hostp, spec, clnt_spcreateerror("RPCMNT: clnt_create"));
960 clntstat = clnt_call(clp, MOUNTPROC_MNT, (xdrproc_t)xdr_dir, spec,
972 hostp, spec, clnt_sperror(clp, "RPCPROG_MNT"));
981 hostp, spec, strerror(nfhret.stat));