Skip to contentSkip to conversation

mount: Mount should retry unreachable hosts

PATCH In review Chuck Lever 2 participants 2 messages Mar 10, 2010 – Mar 19, 2010 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mount: Mount should retry unreachable hosts

Currently if a server is up but not responding (ie, it answers ARP requests, but not NFS or RPC requests), mount retries or backgrounds itself waiting for the server.

If the server is not responding on the network at all, mount fails the mount request immediately.

Users might find it more useful if mount retried in both cases.

Note that this change means attempting to mount using a misspelled server name will "hang" for the retry amount. I suppose the error message isn't very helpful whether it fails immediately or waits a couple of minutes, though I imagine that an unreachable server is a much more common occurrence than a misspelling.

---

 utils/mount/stropts.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
utils/mount/stropts.c +1 -0
index 9b8c38f..98557d2 100644
@@ -799,6 +799,7 @@ static int nfs_is_permanent_error(int error)
 	case ESTALE:
 	case ETIMEDOUT:
 	case ECONNREFUSED:
+	case EHOSTUNREACH:
 		return 0;	/* temporary */
 	default:
 		return 1;	/* permanent */

A message that is not in the archive (sent off-list or not yet received): 20100310214136.3002.78499.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

#2 lore raw
Quoted 15 lines · Chuck Lever

Currently if a server is up but not responding (ie, it answers ARP requests, but not NFS or RPC requests), mount retries or backgrounds itself waiting for the server.

If the server is not responding on the network at all, mount fails the mount request immediately.

Users might find it more useful if mount retried in both cases.

Note that this change means attempting to mount using a misspelled server name will "hang" for the retry amount. I suppose the error message isn't very helpful whether it fails immediately or waits a couple of minutes, though I imagine that an unreachable server is a much more common occurrence than a misspelling.

Quoted 3 lines

---

Committed...

steved.