mirror_zfs/lib/libshare
наб 63ce6dd988 libshare: use AVL tree with static data, pass all data in arguments
This makes it so we don't leak a consistent 64 bytes anymore,
makes the searches simpler and faster, removes /all allocations/
from the driver (quite trivially, since they were absolutely needless),
and makes libshare thread-safe (except, maybe, linux/smb, but that only
does pointer-width loads/stores so it's also mostly fine, except for
leaking smb_shares)

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13165
2022-05-12 09:26:25 -07:00
..
os libshare: use AVL tree with static data, pass all data in arguments 2022-05-12 09:26:25 -07:00
libshare_impl.h libshare: use AVL tree with static data, pass all data in arguments 2022-05-12 09:26:25 -07:00
libshare.c libshare: use AVL tree with static data, pass all data in arguments 2022-05-12 09:26:25 -07:00
Makefile.am autoconf: use include directives instead of recursing down lib 2022-05-10 10:18:11 -07:00
nfs.c libshare/nfs: destaticify nfs_lock_fd 2022-05-12 09:26:13 -07:00
nfs.h libshare: use AVL tree with static data, pass all data in arguments 2022-05-12 09:26:25 -07:00
smb.h libshare: use AVL tree with static data, pass all data in arguments 2022-05-12 09:26:25 -07:00