Lines Matching defs:fs

53 		if (state.visit.fs && state.visit.fs != mp->fs)
55 v = mp->fs->special;
56 z = mp->fs->specialsize;
123 register Fs_t* fs;
147 for (fs = state.fs; fs < state.fs + elementsof(state.fs); fs++)
148 if (fs->get)
150 n = (*fs->get)(fs, p, NiL, flags);
183 * check fs license
187 licensed(register Fs_t* fs)
189 if ((fs->flags & (FS_INTERNAL|FS_LICENSED)) == FS_INTERNAL)
191 if (!(fs->flags & FS_VALIDATED))
193 fs->flags |= FS_VALIDATED;
207 fs->flags |= FS_LICENSED;
210 char buf[sizeof(fs->special) + 4];
212 sfsprintf(buf, sizeof(buf), "*%c%s%c*", LICENSE_SEP, fs->special, LICENSE_SEP);
215 fs->flags |= FS_LICENSED;
217 if (!(fs->flags & FS_LICENSED))
218 error(2, "%s service not licensed", fs->special);
220 if (!(fs->flags & FS_LICENSED))
337 register Fs_t* fs;
357 for (fs = state.fs; fs < state.fs + elementsof(state.fs); fs++)
358 if (fs->set)
359 (*fs->set)(fs, state.null, 0, state.null, 0);
375 for (fs = state.fs; fs < state.fs + elementsof(state.fs); fs++)
376 if (!x || x == fs->key)
378 if (!licensed(fs))
381 if (fs->flags & FS_FS)
386 if (mp->fs != fs)
391 message((-2, "mount: old fs=%s map=%-*s arg=%-*s op=%-*s", fs->special, map->keysize, map->key, arglen, arg, ov ? (oe - ov) : 6, ov));
406 if (!mp->fs)
411 message((-2, "mount: new fs=%s map=%-*s arg=%-*s op=%-*s", fs->special, map->keysize, map->key, arglen, arg, ov ? (oe - ov) : 6, ov));
412 fs->flags |= FS_REFERENCED;
413 if (!(fs->flags & FS_NAME) && !state.cache)
415 mp->fs = fs;
442 else if (setattr(fs->attr, ov, oe))
451 if (fs->set)
455 if ((*fs->set)(fs, (fs->flags & FS_RAW) ? org : arg, argsize, ov, oe - ov))
460 if ((*fs->set)(fs, (fs->flags & FS_RAW) ? org : arg, argsize, state.null, 0))
463 else if ((*fs->set)(fs, state.null, 0, state.null, 0))
469 if (op < oe && fs >= state.fs + elementsof(state.fs))
536 if (!licensed(&state.fs[tab == &state.vpath ? FS_view : tab == &state.vmap ? FS_map : FS_safe]))