9fans archive / 1997 / 05 / 62 /    prev next

From: beto@ncu... beto@ncu...
Subject: NFS mounts
Date: Thu, 22 May 97 10:22:20 PDT

In <199705221645.MAA02774@cse...>
 ckersey@cis... wrote:

>  hello-
> 
>  i am in the process of setting up NFS on our plan9 fileserver.
>  i have successfully set it up so that when i mount from my
>  solaris box that i get the 'main' filesystem mounted; however,
>  i have a 'users' filesystem on the fileserver and that is the
>  filesystem i really want to mount.
> 
>  can someone please point me in the right direction for how
>  to mount a filesystem other than 'main'?
> 

the attach message sent by the nfsserver should contain
and spec arguments which your file system name.
You could hack it to have an argument for it.

void
srvinit(int fd, char *file, char *addr)
{
	char fdservice[16], *naddr;
	Session *s;
	Xfile *xp;
	Xfid *xf;
	Fid *f;
	int i;

	s = calloc(1, sizeof(Session));
	s->spec = "";  ************************