mirror_zfs/lib/libspl
Ryan Moeller e191b60ddc
FreeBSD: Improve libzfs_error_init messages
It is a common mistake to have failed to autoload the module due to
permission issues when running a ZFS command as a user.  "Operation
not permitted" is an unhelpfully vague error message.

Use a thread-local message buffer to format a nicer error message.
We can infer that loading the kernel module failed if the module is
not loaded.  This can be extended with heuristics for other errors
in the future.

While looking at this stuff, remove an unused thread-local message
buffer found in libspl and remove some inaccurate verbiage from the
comment on libzfs_load_module.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11033
2020-10-13 09:38:40 -07:00
..
asm-generic Fix atomic_clear_long_excl wrong return 2020-07-06 11:46:17 -07:00
asm-i386 Changes to make openzfs build within FreeBSD buildworld 2020-07-31 21:30:31 -07:00
asm-x86_64 Fixes for make dist 2020-06-26 14:20:02 -07:00
include Fixes for running FreeBSD buildworld on Linux/macOS hosts 2020-09-03 20:06:03 -07:00
os FreeBSD: Improve libzfs_error_init messages 2020-10-13 09:38:40 -07:00
assert.c Move libspl_assertf into .c file 2020-07-10 14:25:24 -07:00
list.c Fixing gang ABD child removal race condition 2020-07-14 11:04:35 -07:00
Makefile.am libspl: Provide platform-specific zone implementations 2020-08-31 19:43:30 -07:00
mkdirp.c Fix typos in lib/ 2019-09-02 17:53:27 -07:00
page.c ABD optimized page allocation code 2016-11-29 14:34:33 -08:00
strlcat.c Check for strlcat and strlcpy 2018-12-11 16:01:41 -08:00
strlcpy.c Check for strlcat and strlcpy 2018-12-11 16:01:41 -08:00
timestamp.c Always use "%lld" for formatting time_ts 2020-05-28 10:29:58 -07:00