]> git.neil.brown.name Git - nfs-utils.git/commit
Correctly probe mount v2
authorNeil Brown <neilb@suse.de>
Thu, 1 Nov 2007 05:14:08 +0000 (16:14 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 1 Nov 2007 05:14:08 +0000 (16:14 +1100)
commit6af0f6d579e8f440bc97428fc9aca6d58a884a80
treea7b9ac3d9385eb95ebf20fa17cbce97a79765dee
parent5405f58c7803f451c1d529623245062263501738
Correctly probe mount v2

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.
utils/mount/network.c