Skip to contentSkip to conversation

nfs-utils: have mount.nfs default to "intr" mounts for v2 and v3

PATCH New Jeff Layton 1 participant 1 message Jul 25, 2007

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

PATCH 1/1 nfs-utils: have mount.nfs default to "intr" mounts for v2 and v3

Currently NFSv4 defaults to "intr" mounts, and NFSv2 and 3 default to "nointr". The manpage, however, just says that the default is "nointr" with no mention of NFSv4's actual default. We could just fix the doc, but it seems like having "intr" as the default across the board would make the most sense. The following patch does this and updates the nfs manpage accordingly.

I'll also send a follow-on patch that brings the string-based mount options into line with this default.

utils/mount/nfs.man +5 -4
index e66daba..9f238ba 100644
@@ -234,11 +234,12 @@ If an NFS file operation has a major timeout then report
 "server not responding" on the console and continue retrying indefinitely.
 This is the default.
 .TP 1.5i
-.I intr
+.I nointr
 If an NFS file operation has a major timeout and it is hard mounted,
-then allow signals to interupt the file operation and cause it to
-return EINTR to the calling program.  The default is to not
-allow file operations to be interrupted.
+then a signal will allow the operation to be interrupted and EINTR 
+returned to the calling program. This option disables this, causing
+signals to be ignored in this situation. The default is to allow file
+operations to be interrupted by signals.
 .TP 1.5i
 .I posix
 Mount the NFS filesystem using POSIX semantics.  This allows
utils/mount/nfsmount.c +1 -1
index 6949b50..09c5209 100644
@@ -167,7 +167,7 @@ parse_options(char *old_opts, struct nfs_mount_data *data,
 	char cbuf[128];
 	int open_quote = 0;
 
-	data->flags = 0;
+	data->flags = NFS_MOUNT_INTR;
 	*bg = 0;
 
 	len = strlen(new_opts);