diff options
author | James H <[email protected]> | 2011-07-26 11:47:20 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-08-01 13:50:40 -0700 |
commit | 5333eb0b3b18d345052b8cfaf41b90a0c5781fb8 (patch) | |
tree | c3732a22084c4fb331816809f9776cedaad8b64e /lib/libspl/asm-x86_64 | |
parent | 77999e804fff35782ab4b578d2cecf064c54a841 (diff) |
Call exportfs -v once for NFS shares.
At the moment we call exportfs -v every time we check whether an
NFS share is active. This happens every time you run a zfs or
zpool command, making them extremely slow when you have a lot of
exports. The time taken is approx O(n2) of the number of shares.
This commit stores the output from exportfs -v in a temporary file
and use this to speed up subsequent accesses.
This mechanism is still too slow - if you have tens of thousands
of NFS shares it will still be painful running ANY zfs/zpool
command.
Signed-off-by: Gunnar Beutner <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #341
Diffstat (limited to 'lib/libspl/asm-x86_64')
0 files changed, 0 insertions, 0 deletions