zfs/lib
John Gallagher 50ff632787
Rework error handling in zpool_trim()
When a manual trim is run against an entire pool, errors about
particular devices which don't support trim are suppressed. This changes
zpool_trim() in libzfs so that it doesn't return an error when the only
errors are suppressed ones. An exception is made when none of the
devices support trim, in which case an error is reported and a non-zero
status is returned.

This also fixes how the --wait flag works in the presence of suppressed
errors. In particular, suppressed errors no longer cause zpool_trim()
to skip the wait.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: John Gallagher <john.gallagher@delphix.com>
Closes #10263 
Closes #10372
2020-05-27 17:27:28 -07:00
..
libavl OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libefi cppcheck: (error) Memory leak: vtoc 2019-12-18 17:25:04 -08:00
libicp ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
libnvpair Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
libshare Fix static data to link with -fno-common 2020-02-06 09:25:29 -08:00
libspl change libspl list member names to match kernel 2020-04-23 15:53:14 -07:00
libtpool OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libunicode OpenZFS restructuring - libspl 2019-10-02 10:39:48 -07:00
libuutil Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
libzfs Rework error handling in zpool_trim() 2020-05-27 17:27:28 -07:00
libzfs_core Add support for boot environment data to be stored in the label 2020-05-07 09:36:33 -07:00
libzpool Combine OS-independent ABD Code into Common Source File 2020-05-10 12:23:52 -07:00
libzutil Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
Makefile.am Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00