]> git.decadent.org.uk Git - nfs-utils.git/commit
When following a list of mount versions to probe -
authorSteve Dickson <steved@redhat.com>
Sat, 3 Nov 2007 14:36:36 +0000 (10:36 -0400)
committerSteve Dickson <steved@redhat.com>
Sat, 3 Nov 2007 14:36:36 +0000 (10:36 -0400)
commit812a43c1e4e055ee684ab95b28b41f0c16cc52fd
treed10fd05ae865a1d1f1db5cf5833b1d5967e99f46
parentd4b159620b26dce8f83d41358d618ccc82fa82d4
When following a list of mount versions to probe -
e.g. probe_mnt1_first or probe_mnt3_first - probe_both will first
probe the appropriate NFS version and then, if that succeeds, probe
the actual mount version.  However instead of probing the target mount
version, it probes the "most appropriate" mount version for the given NFS version.
This results in it probing:
  NFSv2, MOUNTv1
twice rather than
  NFSv2, MOUNTv1
  NFSv2, MOUNTv2

as would be more correct.

This patch removes the "choose most correct" step and just use the
current mouint version for the probe_vers array.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c