From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: [9fans] newns(2) and fileservers
Date: Fri, 1 Feb 2013 19:21:23 -0500 [thread overview]
Message-ID: <b6683d2f95e80250b9e904e8957a14c7@ladd.quanstro.net> (raw)
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
next reply other threads:[~2013-02-02 0:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-02 0:21 erik quanstrom [this message]
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 ` Ярослав Коломієць
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6683d2f95e80250b9e904e8957a14c7@ladd.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).