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)
commit8ed7383f1b1766f12a3ad3d6259e5e9e37b64727
tree32d0289b24e8cfdd3685f0e3c02caf58500007ca
parentef6462bd655e5ad9bca537e5f4ecff8df41ff1f2
lookup_export: really prefer nonV4ROOT exports.

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>
utils/mountd/cache.c