mirror_zfs/lib/libshare
James H 5333eb0b3b 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 <gunnar@beutner.name>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #341
2011-08-01 13:50:40 -07:00
..
libshare_impl.h Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00
libshare.c Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00
Makefile.am Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00
Makefile.in Provide a rc.d script for archlinux 2011-07-11 14:12:23 -07:00
nfs.c Call exportfs -v once for NFS shares. 2011-08-01 13:50:40 -07:00
nfs.h Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00