nfs-utils: have mount.nfs default to "intr" mounts for v2 and v3
Subsystems (2)
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.
Signed-off-by Jeff Layton <[email protected]>
utils/mount/nfs.man +5 -4
@@ -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
@@ -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);