Files
mirror_zfs/lib
Ryan Moeller 1fdd768d7f libzfs: Fail making a dataset handle gracefully
When a dataset is in the process of being received it gets marked as
inconsistent and should not be used.  We should check for this when
opening a dataset handle in libzfs and return with an appropriate error
set, rather than hitting an abort because of the incomplete data.

zfs_open() passes errno to zfs_standard_error() after observing
make_dataset_handle() fail, which ends up aborting if errno is 0.
Set errno before returning where we know it has not been set already.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #13077
2022-06-06 16:57:51 -07:00
..
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-11-05 07:59:40 -07:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00
2021-11-05 07:59:40 -07:00
2021-11-05 07:59:40 -07:00
2021-11-05 07:59:40 -07:00
2021-01-26 16:12:26 -08:00
2021-01-26 16:12:26 -08:00