mountd: prefer explicit subexports over crossmnt parents
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 27 Jun 2011 16:29:51 +0000 (12:29 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 27 Jun 2011 16:35:21 +0000 (12:35 -0400)
commit13a0a61d037f2cc09e7997a96ce5822b9317883b
tree1edd0765ed8e7efe5953a3772e1acc7c176fabfb
parentf8d26c1db9a260597828685c7f62e1b29e78285f
mountd: prefer explicit subexports over crossmnt parents

If a parent is exported with crossmnt, and if a child is also explicitly
exported, then both exports could potentially produce matches in this
loop; that isn't a bug.

Instead of warning and ignoring the second match we find, we should
instead prefer whichever export is deeper in the tree, so that
children's options can override those of their parents.

Reported-by: Olga Kornievskaia <aglo@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c