]> git.decadent.org.uk Git - nfs-utils.git/commit - utils/mount/nfsmount.c
Currently nfs4mount() sets the retry value to 10000 on both fg and bg
authorJeff Layton <jlaton@redhat.com>
Wed, 7 May 2008 14:27:53 +0000 (10:27 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 7 May 2008 14:27:53 +0000 (10:27 -0400)
commit5f7cc524008a7dc548a71f4c7b0d39759371a37a
treedee79a7ddffb4e03662a7c40e1f318b3795e0c7a
parentad1fc3feae447685a8ec8c7db0ad913fe3c4de5c
Currently nfs4mount() sets the retry value to 10000 on both fg and bg
mounts. It should be 2 for fg and 10000 for bg. nfsmount() sets it
properly, but there is a potential corner case. If someone explicitly
sets retry=10000 on a fg mount, then it will be reset to 2.

Fix this by having retry default to -1 for both flavors, and then reset if
needed after the mount options have been parsed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/nfs4mount.c
utils/mount/nfsmount.c