Linux NFS development
 help / color / mirror / Atom feed
From: "Steinar H. Gunderson" <sesse@debian.org>
To: Neil Brown <neilb@suse.de>
Cc: nfs@lists.sourceforge.net
Subject: Re: Status of mount.nfs
Date: Mon, 16 Jul 2007 11:20:47 +0200	[thread overview]
Message-ID: <20070716092047.GA10353@uio.no> (raw)
In-Reply-To: <18074.50730.591965.39211@notabene.brown>

On Mon, Jul 16, 2007 at 11:13:14AM +1000, Neil Brown wrote:
> Is this simply because you were mounting NFS filesystems before
> running statd?  In that case, maybe we should say that it "highlighted
> that your NFS mounting on boot was already broken" ?? :-)

Yes, we were. I'm in the process of patching the boot process now, so you
could probably shed light on a related issue: Do we need to start portmap
before statd or not? The comments in the old code is slightly cryptic :-)

>>                          Also, it seems to be less forgiving about portmapper
>>    registration; cfs (an encrypted filesystem based off NFS, it seems) sets
>>    up a server on port 3049 and expects "-o port=3049,nfsvers=2" to work. The
>>    new mount.nfs searches for a portmapper unless the udp option is also
>>    correctly set.
> I'm a bit confused here.  I would expect that to avoid portmap being
> used, you would need to set both 'port' and 'mountport' on the command
> line.  It shouldn't have anything to do with whether UDP is set.  Can
> you say a bit more about what you discovered here?

Well, I have no idea how these things work at all, I just traced through the
code and saw what would make it work :-) cfs runs as its own NFS daemon, on
port 3049, but does not seem to register with the portmapper. The mount
command given, without "-o udp", gives:

  mount: mount to NFS server 'localhost' failed: RPC Error: Success.

The error seems to originate from probe_nfsport(), which also has a line
saying

  if (pmap->pm_vers && pmap->pm_prot && pmap->pm_port)
          return 1;

which indicates that if version+protocol+port are all set beforehand, don't
probe -- and indeed, that works. I stopped debugging the issue there.

>>  - If you forget to install it suid (we strip suid bits automatically) you
>>    will of course break user mounts. :-)
> and if you forget to install the new man pages, you will have
> incomplete documentation :-)
> nfs-common  1:1.1.0-9  does not have mount.nfs and umount.nfs man pages.

Thanks, nice catch. I'll be sure to fix that in the next upload.

/* Steinar */
-- 
Homepage: http://www.sesse.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2007-07-16  9:20 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08 19:16 Status of mount.nfs Steinar H. Gunderson
2007-07-08 23:16 ` Chuck Lever
2007-07-09  3:17 ` Neil Brown
2007-07-09  9:55   ` Steinar H. Gunderson
2007-07-09 16:45     ` Chuck Lever
2007-07-10  0:08       ` Neil Brown
2007-07-15  8:31   ` Steinar H. Gunderson
2007-07-16  1:13     ` Neil Brown
2007-07-16  9:20       ` Steinar H. Gunderson [this message]
2007-07-16 10:15         ` Neil Brown
2007-07-22 19:17           ` Steinar H. Gunderson
2007-07-22 21:58             ` Trond Myklebust
2007-07-22 22:04               ` Steinar H. Gunderson
2007-07-24 17:51                 ` Trond Myklebust
     [not found]             ` <46A52816.6050500@oracle.com>
2007-07-24 17:24               ` Steinar H. Gunderson
2007-07-24 17:50                 ` Trond Myklebust
2007-07-24 17:55                   ` Steinar H. Gunderson
2007-07-24 20:46                 ` Chuck Lever
2007-07-24 21:10                   ` Trond Myklebust
2007-07-24 21:18                     ` Chuck Lever
2007-07-25  2:08                 ` rpcbind behavior on Fedora 7 Chuck Lever
2007-07-25 19:35                 ` Status of mount.nfs Chuck Lever
2007-07-26 12:47                   ` Steve Dickson
2007-07-27  3:02                     ` Chuck Lever
2007-07-27 15:00                       ` Steve Dickson
2007-07-27 15:56                         ` Trond Myklebust
2007-07-27 16:16                           ` Steve Dickson
2007-07-27 16:27                             ` Trond Myklebust
2007-07-27 17:07                               ` Steve Dickson
2007-07-27 17:13                                 ` Trond Myklebust
2007-07-27 21:38                                   ` Chuck Lever
2007-07-28 12:51                                   ` Steve Dickson
2007-07-31 18:30                                     ` Trond Myklebust
2007-07-31 21:28                                       ` Chuck Lever
2007-08-01 10:58                                         ` Steve Dickson
2007-08-01 20:02                                           ` Chuck Lever
2007-08-01 21:12                                             ` Steve Dickson
2007-08-02 16:20                                               ` Chuck Lever
2007-08-02 18:42                                                 ` Trond Myklebust
2007-08-02 21:43                                                   ` Chuck Lever
2007-08-03 13:02                                                     ` Trond Myklebust
2007-08-02 20:46                                                 ` Steve Dickson
2007-07-27 19:37                         ` Chuck Lever
2007-07-28 13:20                           ` Steve Dickson
2007-07-28 21:00                             ` Chuck Lever
2007-07-29 19:24                               ` Steve Dickson
2007-07-30  4:14                                 ` Chuck Lever
2007-07-24 23:41     ` Steinar H. Gunderson

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=20070716092047.GA10353@uio.no \
    --to=sesse@debian.org \
    --cc=neilb@suse.de \
    --cc=nfs@lists.sourceforge.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