9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] newns(2) and fileservers
@ 2013-02-02  0:21 erik quanstrom
  2013-02-02  4:04 ` cinap_lenrek
  2013-02-08 18:42 ` Ярослав Коломієць
  0 siblings, 2 replies; 8+ messages in thread
From: erik quanstrom @ 2013-02-02  0:21 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-08 18:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-02  0:21 [9fans] newns(2) and fileservers erik quanstrom
2013-02-02  4:04 ` cinap_lenrek
2013-02-02  4:16   ` erik quanstrom
2013-02-02  4:35     ` cinap_lenrek
2013-02-02  4:41       ` erik quanstrom
2013-02-02  5:07         ` cinap_lenrek
2013-02-02  5:14           ` erik quanstrom
2013-02-08 18:42 ` Ярослав Коломієць

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).