i want to use /lib/namespace.$servername to mount
a second file server.  the second file server is not running
exportfs; and i would like to mount it directly
and not import it.

i think i must be missing something, but i can't figure out
how to do this.  

        import fruitcake!9fs / /n/fruitcake

doesn't work (and in fact hangs) because fruitcake isn't
listening to exportfs.  "mount" doesn't work because it
requires open not dial to yield a fd.

am i missing something?  if so, how do i do this?

if not, then i propose the following change to
/sys/src/libauth/newns.c:

static int
callexport(char *sys, char *tree)
{
        char *na, buf[3];
        int fd;
        AuthInfo *ai;

        na = netmkaddr(sys, 0, "exportfs");
        if((fd = dial(na, 0, 0, 0)) < 0)
                return -1;
>>      if(strstr(na, "!exportfs") == nil)
>>              return fd;

i agree that "import" as the directive seems a bit
wrong.  perhaps a more extensive change could be worked
up for a new verb called "srv" or some such?

- erik

Reply via email to