diff options
author | Brian Behlendorf <[email protected]> | 2014-01-07 09:21:20 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-01-07 09:48:09 -0800 |
commit | e07306687d0862e8d43b5a0e32003748dedcfa3b (patch) | |
tree | 03c00b0bab894a0ce085a93f90c8cf8166f5715f /config/kernel-d-obtain-alias.m4 | |
parent | 8c091798f26e7c1e6fd105e90065ebe12d97dfc2 (diff) |
Enable /etc/mtab cache to improve performance
Re-enable the /etc/mtab cache to prevent the zfs command from
having to repeatedly open and read from the /etc/mtab file.
Instead an AVL tree of the mounted filesystems is created and
used to vastly speed up lookups. This means that if non-zfs
filesystems are mounted concurrently the 'zfs mount' will not
immediately detect them. In practice that will rarely happen
and even if it does the absolute worst case would be a failed
mount. This was originally disabled out of an abundance of
paranoia.
NOTE: There may still be some parts of the code which do not
consult the mtab cache. They should be updated to check the
mtab cache as they as discovered to be a problem.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Turbo Fredriksson <[email protected]>
Signed-off-by: Chris Dunlop <[email protected]>
Issue #845
Diffstat (limited to 'config/kernel-d-obtain-alias.m4')
0 files changed, 0 insertions, 0 deletions