From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 1 Feb 2013 19:21:23 -0500 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] newns(2) and fileservers Topicbox-Message-UUID: 136a80ee-ead8-11e9-9d60-3106f5b1d025 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