Lines Matching refs:fsname
67 char fsname[FSTYPSZ + 1]; member
89 static int fstyp_ident_one(struct fstyp_handle *h, const char *fsname,
92 const char *fsname);
94 char *mdir, char *fsname, fstyp_module_t **mpp);
163 fstyp_ident(struct fstyp_handle *h, const char *fsname, const char **ident) in fstyp_ident() argument
165 if (fsname == NULL) { in fstyp_ident()
168 return (fstyp_ident_one(h, fsname, ident)); in fstyp_ident()
181 *ident = &h->ident->fsname[0]; in fstyp_ident_all()
194 *ident = &mp->fsname[0]; in fstyp_ident_all()
206 fstyp_ident_one(struct fstyp_handle *h, const char *fsname, const char **ident) in fstyp_ident_one() argument
212 if (strcmp(h->ident->fsname, fsname) == 0) { in fstyp_ident_one()
213 *ident = (char *)fsname; in fstyp_ident_one()
220 if (strlen(fsname) > FSTYPSZ) { in fstyp_ident_one()
224 mp = fstyp_find_module_by_name(h, fsname); in fstyp_ident_one()
235 *ident = (char *)fsname; in fstyp_ident_one()
340 fstyp_find_module_by_name(struct fstyp_handle *h, const char *fsname) in fstyp_find_module_by_name() argument
345 if (strcmp(mp->fsname, fsname) == 0) { in fstyp_find_module_by_name()
357 fstyp_init_module(struct fstyp_handle *h, char *mdir, char *fsname, in fstyp_init_module() argument
365 if ((mp = fstyp_find_module_by_name(h, fsname)) != NULL) { in fstyp_init_module()
390 (void) strlcpy(mp->fsname, fsname, sizeof (mp->fsname)); in fstyp_init_module()