All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug] NFSv4 fails to work without ipv6 kernel module
@ 2009-04-27 15:03 Andrew Savchenko
  2009-04-27 16:04 ` Chuck Lever
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Savchenko @ 2009-04-27 15:03 UTC (permalink / raw)
  To: linux-nfs

[-- Attachment #1: Type: text/plain, Size: 821 bytes --]

Hello,

I have ipv6 support as a module (it may be needed in the recent 
future), but currently I want ipv6 to be disabled on my system, so 
I blacklisted this module. And here problems begin...

NFSv3 works flawlessly:
# mount 172.19.0.1:/home/ftp /mnt/nfs/

but NFSv4 fails:
# mount -t nfs4 172.19.0.1:/ /mnt/nfs/
mount.nfs4: Cannot allocate memory

After modprobe ipv6 it works:
# mount -t nfs4 172.19.0.1:/ /mnt/nfs/

I recompiled nfs-utils without ipv6 support, but this doesn't help.

Here is my /etc/exports:
/home/ftp 172.16.0.0/12
(ro,async,crossmnt,no_subtree_check,fsid=0,all_squash) \
        127.0.0.1/32
(ro,async,crossmnt,no_subtree_check,fsid=0,all_squash)

I use nfs-utils-1.1.5, I tested this on both vanilla linux kernels 
2.6.28.7 and 2.6.28.9.

-- 
Best regards,
Andrew

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [Bug] NFSv4 fails to work without ipv6 kernel module
@ 2009-04-30 23:04 Andrew Savchenko
  2009-05-01 14:15 ` Chuck Lever
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Savchenko @ 2009-04-30 23:04 UTC (permalink / raw)
  To: linux-nfs

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

Hello, Chuck!

[10l, forget to CC to list]

On Thursday 30 April 2009, Chuck Lever wrote:
[...]
> > With ipv6 module loaded all works fine.
> >
> >> You can also try building 2.6.28 with
> >> CONFIG_SUNRPC_REGISTER_V4 disabled.
> >
> > With this option disabled errno 5 (see above) disappeared from
> > logs, but mount fails with the same errors. Yet again, with
> > ipv6 module loaded it works ok.
>
> Reproduced here.  A patch is attached.  (I usually send patches
> inline, but to test 2.6.29-stable I'm working outside of git,
> using old-fashioned tools like "diff").

Patch works ok, thank you.

-- 
Best regards,
Andrew

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-05-01 14:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-27 15:03 [Bug] NFSv4 fails to work without ipv6 kernel module Andrew Savchenko
2009-04-27 16:04 ` Chuck Lever
2009-04-28  0:43   ` Andrew Savchenko
2009-04-28 16:16     ` Chuck Lever
2009-04-28 18:50       ` Weathers, Norman R.
2009-04-30 16:48     ` Chuck Lever
  -- strict thread matches above, loose matches on Subject: below --
2009-04-30 23:04 Andrew Savchenko
2009-05-01 14:15 ` Chuck Lever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.