* kernel 2.6.4 and nfs lockd.udpport?
@ 2004-03-29 9:58 Jan Kesten
2004-03-29 19:19 ` Trond Myklebust
0 siblings, 1 reply; 4+ messages in thread
From: Jan Kesten @ 2004-03-29 9:58 UTC (permalink / raw)
To: linux-kernel
Hi all!
I'm running a 2.6.4 kernel with compiled in nfs support. I have to tie the
used ports because there is a firewall to gro through. mountd, statd and
rquotad are just fine, I can change ports after booting, no problem. But not
for lockd (or nlockmgr), since AFAIK this must be done with boot parameters.
I read the docs and found that the parameters sould be lockd.udpport and
lockd.tcpport=xxx - but this doesn't work. While booting I got errors that
both are unknown boot options.
Where is my mistake?
Cheers,
Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: kernel 2.6.4 and nfs lockd.udpport?
2004-03-29 9:58 kernel 2.6.4 and nfs lockd.udpport? Jan Kesten
@ 2004-03-29 19:19 ` Trond Myklebust
2004-03-31 14:57 ` Jamie Lokier
0 siblings, 1 reply; 4+ messages in thread
From: Trond Myklebust @ 2004-03-29 19:19 UTC (permalink / raw)
To: Jan Kesten; +Cc: linux-kernel
På må , 29/03/2004 klokka 04:58, skreiv Jan Kesten:
> Hi all!
>
> I'm running a 2.6.4 kernel with compiled in nfs support. I have to tie the
> used ports because there is a firewall to gro through. mountd, statd and
> rquotad are just fine, I can change ports after booting, no problem. But not
> for lockd (or nlockmgr), since AFAIK this must be done with boot parameters.
>
> I read the docs and found that the parameters sould be lockd.udpport and
> lockd.tcpport=xxx - but this doesn't work. While booting I got errors that
> both are unknown boot options.
>
> Where is my mistake?
Someone updated lockd so that it uses a sysctl-based interface instead.
Apparently without changing the docs.
See the contents of /proc/sys/fs/nfs ...
Cheers,
Trond
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: kernel 2.6.4 and nfs lockd.udpport?
2004-03-29 19:19 ` Trond Myklebust
@ 2004-03-31 14:57 ` Jamie Lokier
2004-03-31 16:25 ` Trond Myklebust
0 siblings, 1 reply; 4+ messages in thread
From: Jamie Lokier @ 2004-03-31 14:57 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Jan Kesten, linux-kernel
Trond Myklebust wrote:
> > I read the docs and found that the parameters sould be lockd.udpport and
> > lockd.tcpport=xxx - but this doesn't work. While booting I got errors that
> > both are unknown boot options.
> >
> > Where is my mistake?
>
> Someone updated lockd so that it uses a sysctl-based interface instead.
> Apparently without changing the docs.
I added the sysctl-based interface, and kept the modules parameters,
and updated the code in line with the 2.6 module parameter style.
See the "module_param_call" lines in fs/lockd/svc.c.
The module parameters "nlm_udpport" and "nlm_tcpport" _do_ work -- I
use them with my firewall.
For some reason, because modules don't need #ifdef MODULE any more, I
thought module_param*() entries would be automatically available as
boot parameters. Silly me, that would be too obvious.
-- Jamie
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: kernel 2.6.4 and nfs lockd.udpport?
2004-03-31 14:57 ` Jamie Lokier
@ 2004-03-31 16:25 ` Trond Myklebust
0 siblings, 0 replies; 4+ messages in thread
From: Trond Myklebust @ 2004-03-31 16:25 UTC (permalink / raw)
To: Jamie Lokier; +Cc: Jan Kesten, linux-kernel
On Wed, 2004-03-31 at 09:57, Jamie Lokier wrote:
> The module parameters "nlm_udpport" and "nlm_tcpport" _do_ work -- I
> use them with my firewall.
>
> For some reason, because modules don't need #ifdef MODULE any more, I
> thought module_param*() entries would be automatically available as
> boot parameters. Silly me, that would be too obvious.
module_param*() ought indeed to suffice.
AFAICS the only problem here is that Documentation/kernel-parameters.txt
still lists lockd.udpport and lockd.tcpport instead of the new names
lockd.nlm_udpport and lockd.nlm_udpport.
There is also lockd.nlm_grace_period, and lockd.nlm_timeout, both of
which need to be added to the same list...
Cheers,
Trond
--
Trond Myklebust <trond.myklebust@fys.uio.no>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-03-31 16:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-29 9:58 kernel 2.6.4 and nfs lockd.udpport? Jan Kesten
2004-03-29 19:19 ` Trond Myklebust
2004-03-31 14:57 ` Jamie Lokier
2004-03-31 16:25 ` Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®