Lines Matching refs:fsname
585 getfstype(char *askfor, char *fsname, size_t fsnamelen) in getfstype() argument
599 for (*fsname = '\0'; *fsname == '\0'; *fsname = '\0') { in getfstype()
601 console_gets(fsname, fsnamelen); in getfstype()
602 if (*fsname == '\0') in getfstype()
603 (void) strcpy(fsname, defaultfs); in getfstype()
605 if (strcmp(fsname, "nfs2") == 0) in getfstype()
606 (void) strcpy(fsname, "nfs"); in getfstype()
607 else if (strcmp(fsname, "nfs") == 0) in getfstype()
608 (void) strcpy(fsname, "nfsdyn"); in getfstype()
610 if ((vsw = vfs_getvfssw(fsname)) != NULL) in getfstype()
612 printf("Unknown filesystem type '%s'\n", fsname); in getfstype()
614 } else if (*fsname == '\0') { in getfstype()
615 fsname = defaultfs; in getfstype()
617 if (*fsname == '\0') { in getfstype()
622 if (strcmp(fsname, "nfs2") == 0) in getfstype()
623 (void) strcpy(fsname, "nfs"); in getfstype()
624 else if (strcmp(fsname, "nfs") == 0) in getfstype()
625 (void) strcpy(fsname, "nfsdyn"); in getfstype()
628 return (vfs_getvfssw(fsname)); in getfstype()