1 |
|
2003-03-05 Roland McGrath <roland@frob.com> |
2 |
|
|
3 |
|
Make /hurd/magic support translator delegation via /servers/magic. |
4 |
|
* magic.c (struct magic): New structure. |
5 |
|
(magic, directory, dirbuf, dirbufsize): Variables removed, |
6 |
|
not members of struct magic. |
7 |
|
(trivfs_modify_stat, magic_getroot, trivfs_S_dir_readdir): Use a |
8 |
|
struct magic hanging off CNTL->hook rather than global variables. |
9 |
|
(trivfs_append_args): Likewise. |
10 |
|
(trivfs_S_dir_lookup): Likewise. Let magic string be null to indicate |
11 |
|
prepending nothing in --directory mode. |
12 |
|
(parse_opt): Use struct magic in STATE->input instead of globals. |
13 |
|
If no argument, turn on --directory and leave M->magic null. |
14 |
|
(argp): New static variable, instead of auto in main. |
15 |
|
(main): Set both trivfs hook functions unconditionally. |
16 |
|
Use a struct magic, pass it to argp_parse and store it in FSYS->hook. |
17 |
|
Move directory buffer setup to ... |
18 |
|
(parse_opt): ... here, do it on ARGP_KEY_SUCCESS. |
19 |
|
(magic_open): Track users with a count. |
20 |
|
(magic_protid_destroy): New function to track users. |
21 |
|
(main): Set trivfs_protid_destroy_hook to that. |
22 |
|
(trivfs_goaway): Call ports_destroy_right if FSYS has no users. |
23 |
|
(all_fsys): New variable, list of all filesystems. |
24 |
|
(trivfs_clean_cntl): New function, exit if no filesystems left. |
25 |
|
(main): Put FSYS on that list. On timeout with no RPCs, try |
26 |
|
trivfs_goaway on each filesystem on the list. |
27 |
|
(trivfs_S_fsys_forward): New function. |
28 |
|
(delegate): New variable. |
29 |
|
(options): New option -U/--use-server to set it. |
30 |
|
|
31 |
2002-12-08 Roland McGrath <roland@frob.com> |
2002-12-08 Roland McGrath <roland@frob.com> |
32 |
|
|
33 |
* pump.c: File removed. |
* pump.c: File removed. |