All of lore.kernel.org
 help / color / mirror / Atom feed
* Inconsistent error codes between NFSv4 and v3 on network issues
@ 2013-03-01 11:43 Jan Engelhardt
  2013-03-04 14:16 ` J. Bruce Fields
  2013-03-04 17:47 ` Chuck Lever
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Engelhardt @ 2013-03-01 11:43 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

Hi.


I had here a case with a Linux 3.7.9 system, a virtual machine in a
RFC1918 range, that did not want to mount NFS.

linux-3lzm:~ # strace -fe mount mount -t nfs 134.76.12.5:/X /mnt
Process 1477 attached
[pid  1515] mount("134.76.12.5:/X", "/mnt", "nfs", 0, "vers=4,addr=134.76.12.5,clientaddr=0.0.0.0") = -1 EIO (Input/output error)
mount.nfs: mount system call failed
[pid  1477] +++ exited with 32 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1477, si_status=32, si_utime=0, si_stime=0} ---
+++ exited with 32 +++

Nothing in dmesg...

[   84.202243] RPC: Registered named UNIX socket transport module.
[   84.202246] RPC: Registered udp transport module.
[   84.202248] RPC: Registered tcp transport module.
[   84.202249] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   84.205909] FS-Cache: Loaded
[   84.208782] FS-Cache: Netfs 'nfs' registered for caching
[   84.215733] NFS: Registering the id_resolver key type
[   84.215762] Key type id_resolver registered
[   84.215763] Key type id_legacy registered

When mounting with NFSv3, the error became clear:

# strace -fe mount -s 65536 mount -t nfs 134.76.12.5:/X /mnt -o nfsvers=3,nolock
Process 1550 attached
mount.nfs: Network is unreachable
[pid  1550] +++ exited with 32 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1550, si_status=32, si_utime=0, si_stime=0} ---
+++ exited with 32 +++

Can NFSv4 be made to return -ENETUNREACH as well?

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

end of thread, other threads:[~2013-03-13 14:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 11:43 Inconsistent error codes between NFSv4 and v3 on network issues Jan Engelhardt
2013-03-04 14:16 ` J. Bruce Fields
2013-03-04 14:16   ` J. Bruce Fields
2013-03-04 17:47 ` Chuck Lever
2013-03-04 19:10   ` Jan Engelhardt
2013-03-04 20:43     ` Myklebust, Trond
2013-03-04 22:37       ` Myklebust, Trond
2013-03-13 14:47         ` Jan Engelhardt

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.