mirror_zfs/lib/libzfs
Alan Somers e4288a8397
zfs get: don't lookup mount options when using "-s local"
Looking up mount options can be very expensive on servers with many
mounted file systems.  When doing "zfs get" with any "-s" option that
does not include "temporary", the mount list will never be used.  This
commit optimizes for that case.

This is a breaking commit for libzfs!  Callers of zfs_get_prop are now
required to initialize src.  To preserve existing behavior, they should
initialize it to ZPROP_SRC_NONE.

Sponsored by: Axcient
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #11955
2021-04-29 14:19:44 -07:00
..
os lib/: set O_CLOEXEC on all fds 2021-04-11 15:45:59 -07:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libzfs_changelist.c Add 'zfs rename -u' to rename without remounting 2020-09-01 16:14:16 -07:00
libzfs_config.c Use zfs_ioctl with zfs_cmd_t in libzfs 2019-10-23 17:29:43 -07:00
libzfs_crypto.c libzfs: don't mark prompt+raw as retriable 2021-04-17 12:39:28 -07:00
libzfs_dataset.c zfs get: don't lookup mount options when using "-s local" 2021-04-29 14:19:44 -07:00
libzfs_diff.c zfs get: don't lookup mount options when using "-s local" 2021-04-29 14:19:44 -07:00
libzfs_import.c zpool: speed up importing large pools (#11469) 2021-01-21 12:55:54 -08:00
libzfs_iter.c lib/: set O_CLOEXEC on all fds 2021-04-11 15:45:59 -07:00
libzfs_mount.c zfs get: don't lookup mount options when using "-s local" 2021-04-29 14:19:44 -07:00
libzfs_pool.c Improvements to the 'compatibility' property 2021-04-12 09:08:56 -07:00
libzfs_sendrecv.c zfs get: don't lookup mount options when using "-s local" 2021-04-29 14:19:44 -07:00
libzfs_status.c Improvements to the 'compatibility' property 2021-04-12 09:08:56 -07:00
libzfs_util.c libzfs: get rid of libzfs_handle::libzfs_mnttab 2021-04-13 14:14:44 -07:00
libzfs.abi libzfs: get rid of unused libzfs_handle::libzfs_{storeerr,chassis_id} 2021-04-13 14:15:06 -07:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
Makefile.am Bump libzfs.so and libzpool.so versions 2021-04-01 16:53:05 -07:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00