5 typedef struct Exporter Exporter;
14 mounter(char *mntpt, int how, int fd, int n)
20 for(i = 0; i < n; i++){
21 snprint(buf, sizeof buf, "%d", i);
23 if(mount(mfd, -1, mntpt, how, buf) == -1){
25 fprint(2, "can't mount on %s: %r\n", mntpt);
46 sysexport(ex->fd, ex->roots, ex->nroots);
52 exporter(Dev **dt, int *fd, int *sfd)
58 for(n = 0; dt[n] != nil; n++)
61 werrstr("no devices specified");
71 roots = smalloc(n * sizeof *roots);
72 for(i = 0; i < n; i++){
75 roots[i] = (*dt[i]->attach)("");
81 werrstr("can't make pipe: %r");
91 kproc("exporter", extramp, &ex);