zfs/lib/libzfs/os/linux
Ryan Moeller 217f48373f
libzfs: Add error message for why creating mountpoint failed
When zfs_mount_at() fails to stat the mountpoint and can't create the
directory, we return an error with a message "failed to create
mountpoint" but there is no indication why it failed.

Add the error string from the syscall to the error aux message.

Update do_mount for Linux to return the errno instead of -1.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10550
2020-07-11 17:16:13 -07:00
..
libzfs_mount_os.c libzfs: Add error message for why creating mountpoint failed 2020-07-11 17:16:13 -07:00
libzfs_pool_os.c Improve compatibility with C++ consumers 2020-06-06 12:54:04 -07:00
libzfs_sendrecv_os.c OpenZFS restructuring - libzfs 2019-10-03 10:33:16 -07:00
libzfs_util_os.c Move zfs_version_kernel to platform code 2020-02-12 13:00:19 -08:00