freebsd-nq/lib
Allan Jude 8fb79fdddb
Change the error handling for invalid property values
ZFS recv should return a useful error message when an invalid index
property value is provided in the send stream properties nvlist

With a compression= property outside of the understood range:

Before:
```
receiving full stream of zof/zstd_send@send2 into testpool/recv@send2
internal error: Invalid argument
Aborted (core dumped)
```
Note: the recv completes successfully, the abort() is likely just to
make it easier to track the unexpected error code.

After:
```
receiving full stream of zof/zstd_send@send2 into testpool/recv@send2
cannot receive compression property on testpool/recv: invalid property
value received 28.9M stream in 1 seconds (28.9M/sec)
```

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #10631
2020-08-01 08:41:31 -07:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libshare Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
libspl Changes to make openzfs build within FreeBSD buildworld 2020-07-31 21:30:31 -07:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libzfs Change the error handling for invalid property values 2020-08-01 08:41:31 -07:00
libzfs_core Disable -Wl,-z,defs for ASAN builds 2020-07-14 12:17:44 -07:00
libzpool Rename refcount.h to zfs_refcount.h 2020-07-29 16:35:33 -07:00
libzutil FreeBSD: zfs commands backward compatibility 2020-07-15 21:32:50 -07:00
Makefile.am Clean up lib dependencies 2020-07-10 14:26:00 -07:00