mirror_zfs/lib/libzfs/os
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
..
freebsd libzfs: Make zfs_cmd_t initialization consistent, use zfs_ioctl 2020-07-09 17:47:12 -07:00
linux libzfs: Add error message for why creating mountpoint failed 2020-07-11 17:16:13 -07:00