Lines Matching defs:fs_tab

79 struct	fstable	**fs_tab = NULL;
228 (void) strcpy(hostname, fs_tab[n]->remote_name);
230 if ((strcmp(fs_tab[n]->fstype, MNTTYPE_AUTO)) == NULL)
233 return (fs_tab[n]->fstype);
264 * already in place on the server. This scans the fs_tab for a remote_name
292 if (strcmp(fs_tab[i]->name, client_path) == 0) {
300 strcmp(fs_tab[i]->remote_name, host_path) == 0) {
307 if (strcmp(fs_tab[i]->remote_name, vfs->vfs_special) == 0) {
338 if (fs_tab[n]->cl_mounted && fs_tab[n]->srvr_map) {
344 arg[1] = fs_tab[n]->name;
393 fs_tab[n]->name, errcode);
395 fs_tab[n]->cl_mounted = 0;
463 if (fs_tab[n]->mounted && fs_tab[n]->srvr_map) {
471 arg[3] = fs_tab[n]->remote_name;
472 arg[4] = fs_tab[n]->name;
519 fs_tab[n]->mnt_failed = 1;
521 fs_tab[n]->name, errcode);
523 fs_tab[n]->cl_mounted = 1;
564 * filesystem. fsys_value is the fs_tab[] entry to which the loopback'd path is
578 "%s%s", fs_tab[fsys_value]->remote_name,
579 path+strlen(fs_tab[fsys_value]->name));
587 /* This function sets up the standard parts of the fs_tab. */
614 * Point fs_tab at the head of the array again, since it may have
617 * array. Because we stored pointer to that array in fs_tab, we need
620 if ((fs_tab = (struct fstable **)ar_get_head(fs_list)) == NULL) {
660 free(fs_tab[n]->fstype);
661 free(fs_tab[n]->name);
662 free(fs_tab[n]->remote_name);
695 * This function constructs a new filesystem table (fs_tab[]) entry based on
697 * into fs_tab[].
758 * This function modifies an existing fs_tab[] entry. It was found mounted up
770 fs_tab[fstab_entry]->served = 1;
772 fs_tab[fstab_entry]->cl_mounted = 1;
776 * This function constructs a new fs_tab[] entry based on
822 link_name = strdup(fs_tab[match_mount]->name);
825 nfte->writeable = fs_tab[match_mount]->writeable;
826 nfte->write_tested = fs_tab[match_mount]->write_tested;
832 nfte->writeable = fs_tab[fsys(link_name)]->writeable;
891 * for in the fs_tab[] so far. If the remote filesystem is really on
905 qsort(fs_tab, fs_tab_used,
1005 qsort(fs_tab, fs_tab_used, sizeof (struct fstable *), fs_tab_ent_comp);
1006 if (strcmp(fs_tab[fs_tab_used-1]->name, rn) != 0) {
1007 progerr(ERR_MNT_NOROOT, fs_tab[fs_tab_used-1]->name, rn, errno,
1092 * fs_tab[] are sorted by decreasing length to facilitate the scan.
1106 if (fs_tab[i] == NULL)
1108 else if (fs_tab[i]->namlen <= pathlen)
1114 if (fs_tab[i] == NULL)
1117 fs_namelen = fs_tab[i]->namlen;
1129 if ((fs_namelen == 1 && *(fs_tab[i]->name) == '/') ||
1131 strncmp(fs_tab[i]->name, path2use, fs_namelen) == 0))
1145 * This function returns the entry in the fs_tab[] corresponding to the
1162 } while (fs_tab[i]->srvr_map);
1168 * This function returns the srvr_map status based upon the fs_tab entry
1175 return ((int)fs_tab[n]->srvr_map);
1179 * This function returns the mount status based upon the fs_tab entry
1186 return ((int)fs_tab[n]->mounted);
1202 if (fs_tab[n]->remote && fs_tab[n]->mounted &&
1203 !fs_tab[n]->write_tested) {
1204 if (fs_tab[n]->writeable && !really_write(fs_tab[n]->name))
1205 fs_tab[n]->writeable = 0; /* not really */
1207 fs_tab[n]->write_tested = 1; /* confirmed */
1210 return ((int)fs_tab[n]->writeable);
1222 return ((int)fs_tab[n]->remote);
1229 return ((int)fs_tab[n]->served);
1240 return (fs_tab[n]->bfree);
1251 return (fs_tab[n]->bused);
1262 return (fs_tab[n]->ffree);
1273 return (fs_tab[n]->fused);
1284 fs_tab[n]->bused = value;
1291 return (fs_tab[n]->bsize);
1298 return (fs_tab[n]->bsize);
1312 return (fs_tab[n]->name);
1324 return (fs_tab[n]->remote_name);
1410 p = strchr(fs_tab[n]->remote_name, ':');
1412 p = fs_tab[n]->remote_name; /* Loopback */
1428 return (fs_tab[n]->name);
1439 return (fs_tab[n]);