]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found