Lines Matching refs:fs_tab
80 struct fstable **fs_tab = NULL;
224 (void) strcpy(hostname, fs_tab[n]->remote_name);
226 if ((strcmp(fs_tab[n]->fstype, MNTTYPE_AUTOFS)) == NULL)
229 return (fs_tab[n]->fstype);
260 * already in place on the server. This scans the fs_tab for a remote_name
288 if (strcmp(fs_tab[i]->name, client_path) == 0) {
296 strcmp(fs_tab[i]->remote_name, host_path) == 0) {
303 if (strcmp(fs_tab[i]->remote_name, vfs->vfs_special) == 0) {
334 if (fs_tab[n]->cl_mounted && fs_tab[n]->srvr_map) {
340 arg[1] = fs_tab[n]->name;
389 fs_tab[n]->name, errcode);
391 fs_tab[n]->cl_mounted = 0;
459 if (fs_tab[n]->mounted && fs_tab[n]->srvr_map) {
467 arg[3] = fs_tab[n]->remote_name;
468 arg[4] = fs_tab[n]->name;
515 fs_tab[n]->mnt_failed = 1;
517 fs_tab[n]->name, errcode);
519 fs_tab[n]->cl_mounted = 1;
560 * filesystem. fsys_value is the fs_tab[] entry to which the loopback'd path is
574 "%s%s", fs_tab[fsys_value]->remote_name,
575 path+strlen(fs_tab[fsys_value]->name));
583 /* This function sets up the standard parts of the fs_tab. */
610 * Point fs_tab at the head of the array again, since it may have
613 * array. Because we stored pointer to that array in fs_tab, we need
616 if ((fs_tab = (struct fstable **)ar_get_head(fs_list)) == NULL) {
656 free(fs_tab[n]->fstype);
657 free(fs_tab[n]->name);
658 free(fs_tab[n]->remote_name);
691 * This function constructs a new filesystem table (fs_tab[]) entry based on
693 * into fs_tab[].
754 * This function modifies an existing fs_tab[] entry. It was found mounted up
766 fs_tab[fstab_entry]->served = 1;
768 fs_tab[fstab_entry]->cl_mounted = 1;
772 * This function constructs a new fs_tab[] entry based on
818 link_name = strdup(fs_tab[match_mount]->name);
821 nfte->writeable = fs_tab[match_mount]->writeable;
822 nfte->write_tested = fs_tab[match_mount]->write_tested;
828 nfte->writeable = fs_tab[fsys(link_name)]->writeable;
887 * for in the fs_tab[] so far. If the remote filesystem is really on
901 qsort(fs_tab, fs_tab_used,
999 qsort(fs_tab, fs_tab_used, sizeof (struct fstable *), fs_tab_ent_comp);
1000 if (strcmp(fs_tab[fs_tab_used-1]->name, rn) != 0) {
1001 progerr(ERR_MNT_NOROOT, fs_tab[fs_tab_used-1]->name, rn, errno,
1086 * fs_tab[] are sorted by decreasing length to facilitate the scan.
1100 if (fs_tab[i] == NULL)
1102 else if (fs_tab[i]->namlen <= pathlen)
1108 if (fs_tab[i] == NULL)
1111 fs_namelen = fs_tab[i]->namlen;
1123 if ((fs_namelen == 1 && *(fs_tab[i]->name) == '/') ||
1125 strncmp(fs_tab[i]->name, path2use, fs_namelen) == 0)) {
1140 * This function returns the entry in the fs_tab[] corresponding to the
1157 } while (fs_tab[i]->srvr_map);
1163 * This function returns the srvr_map status based upon the fs_tab entry
1170 return ((int)fs_tab[n]->srvr_map);
1174 * This function returns the mount status based upon the fs_tab entry
1181 return ((int)fs_tab[n]->mounted);
1197 if (fs_tab[n]->remote && fs_tab[n]->mounted &&
1198 !fs_tab[n]->write_tested) {
1199 if (fs_tab[n]->writeable && !really_write(fs_tab[n]->name))
1200 fs_tab[n]->writeable = 0; /* not really */
1202 fs_tab[n]->write_tested = 1; /* confirmed */
1205 return ((int)fs_tab[n]->writeable);
1217 return ((int)fs_tab[n]->remote);
1224 return ((int)fs_tab[n]->served);
1235 return (fs_tab[n]->bfree);
1246 return (fs_tab[n]->bused);
1257 return (fs_tab[n]->ffree);
1268 return (fs_tab[n]->fused);
1279 fs_tab[n]->bused = value;
1286 return (fs_tab[n]->bsize);
1293 return (fs_tab[n]->bsize);
1307 return (fs_tab[n]->name);
1319 return (fs_tab[n]->remote_name);
1405 p = strchr(fs_tab[n]->remote_name, ':');
1407 p = fs_tab[n]->remote_name; /* Loopback */
1423 return (fs_tab[n]->name);
1434 return (fs_tab[n]);