zfs/lib
Low-power 4dced31b98
Fix 'zpool history' sometimes fails without reporting any error
The corresponding function 'zpool_get_history' in libzfs would printing
an error messages only when the ioctl call failed.

Add missing error reporting, specifically memory allocation failures
and error from 'zpool_history_unpack'.

Also avoid possibly reading of uninitialized 'err' variable in case
the requested offset pasts EOF.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Signed-off-by: WHR <msl0000023508@gmail.com>
Issue #13322 
Closes #13320
2022-04-15 14:16:07 -07:00
..
libavl Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libefi Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libicp Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libnvpair Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libshare linux: libshare: smb: fix more than one smb_is_share_active() call 2022-04-01 18:02:24 -07:00
libspl libspl: print_timestamp: use localtime_r() 2022-04-05 09:45:33 -07:00
libtpool Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libunicode Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libuutil Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libzfs Fix 'zpool history' sometimes fails without reporting any error 2022-04-15 14:16:07 -07:00
libzfs_core Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libzfsbootenv Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libzpool Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libzstd Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
libzutil Ask libtool to stop hiding some errors 2022-03-31 10:09:18 -07:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00