Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2001 00:33:28 +0100 (CET)
From:      Martin Blapp <mb@imp.ch>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        "Andrey A. Chernov" <ache@nagual.pp.ru>, Daniel <freebsd@grunblatt.com.ar>, current@FreeBSD.ORG
Subject:   Re: [FIX] Re: CFS - Portmap
Message-ID:  <Pine.BSF.4.21.0103230028140.17221-100000@levais.imp.ch>
In-Reply-To: <20010322152422.K9431@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Ok,

here is what I found:

notes.ms, line 228

If your system does not support NFS mounts on ports other
than 2049, add -DCFS_PORT=2049; you will not be able to simultaneously
run the target system as an NFS server under this configuration.

cfs.h:#define CFS_PORT 2049
nfsproto.h:#define      NFS_PORT 2049
nfsproto.x:const NFS_PORT          = 2049

and then this code here:

if (!svc_reg(tp, NFS_PROGRAM, NFS_VERSION, nfs_program_2,
       (port==2049? nc : NULL))) {
         fprintf(stderr,"Can't register CFS NFS\n");
                exit(1);
}

Cause the 5. argument (const char *nettype nc) is NULL in our case,
svc_reg does not register cfs within rpcbind.

If you compile with -DCFS_PORT=2049, cfs works as normal.

I'm only thinking what is the right thing to do ...

Martin

Martin Blapp, mb@imp.ch
------------------------------------------------
Improware AG, UNIX solution and service provider
Zurlindenstrasse 29, 4133 Pratteln, Switzerland
Phone: +41 79 370 26 05, Fax: +41 61 826 93 01
------------------------------------------------

On Thu, 22 Mar 2001, Alfred Perlstein wrote:

> * Martin Blapp <mb@imp.ch> [010322 15:00] wrote:
> > 
> > Hi,
> > 
> > I see, seems that (port==2049? nc : NULL) has changed in some way.
> > I'll fix that.
> > 
> > PS: let's change to private discussion and not cc current anymore.
> 
> Please don't, I'd like to understand what's going on here.
> 
> There's also a chance someone will jump in with the answer you're
> looking for.
> 
> -- 
> -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103230028140.17221-100000>