HomeFreeBSD

Prevent duplicate mnttab cache entries

Description

Prevent duplicate mnttab cache entries

Under Linux its possible to mount the same filesystem multiple
times in the namespace. This can be done either with bind mounts
or simply with multiple mount points. Unfortunately, the mnttab
cache code is implemented using an AVL tree which does not support
duplicate entries. To avoid this issue this patch updates the
code to check for a duplicate entry before adding a new one.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Michael Martin <mgmartin.mgm@gmail.com>
Closes #2041

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 13 2014, 9:02 PM
Parents
rGfd23720ae14d: Drain iput taskq outside z_teardown_lock
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG741304503a28: Prevent duplicate mnttab cache entries (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 14 2014, 6:27 PM