]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
lookup_export: really prefer nonV4ROOT exports.
authorNeilBrown <neilb@suse.de>
Tue, 1 May 2012 19:14:43 +0000 (15:14 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 1 May 2012 19:29:59 +0000 (15:29 -0400)
lookup_export() claims to "Always prefer non-V4ROOT mounts" (meaning
"exports") but actually prefers V4ROOT exports - once it has 'found'
one it will never replace it.

So fix that inversion, and add code so that it proactively prefers a
non-V4ROOT whether it is found before or after a V4ROOT.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>

No differences found