Lines Matching defs:hostname
69 static enum clnt_stat pingnfs(char *hostname, rpcvers_t *versp);
71 static struct netbuf *get_addr(char *hostname, int prog, int vers,
340 args.hostname = host;
415 char *hostname;
446 hostname = fsname;
449 if ((client = clnt_create(hostname, MOUNTPROG, MOUNTVERS, "udp"))
456 errprintf(NULL, "umount %s:%s:%s", hostname, p,
661 * and "vers" on "hostname". The netconfig address is returned
663 * If the hostname is the same as the last call, then the same
667 get_addr(char *hostname, int prog, int vers, struct netconfig **nconfp)
680 if (strcmp(hostname, prevhost) != 0) {
699 (void) strcpy(prevhost, hostname);
710 if (rpcb_getaddr(prog, vers, nconf, &tbind->addr, hostname) == 0) {
797 pingnfs(char *hostname, rpcvers_t *versp)
806 if (goodtime > time_now && strcmp(hostname, goodhost) == 0)
808 if (deadtime > time_now && strcmp(hostname, deadhost) == 0)
812 printf("ping %s ", hostname);
816 cl = clnt_create_vers(hostname, NFS_PROGRAM, versp, NFS_VERSMIN,
820 hostname, clnt_spcreateerror(""));
830 (void) strcpy(goodhost, hostname);
833 (void) strcpy(deadhost, hostname);