Files
mirror_zfs/module/zfs
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
..
2020-07-24 21:09:20 -07:00
2020-06-18 12:21:25 -07:00
2019-07-26 10:54:14 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2019-06-19 09:48:12 -07:00
2020-06-09 21:24:09 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:18 -07:00
2019-12-03 09:51:44 -08:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:20:38 -07:00
2020-06-09 21:24:09 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-07-03 11:05:50 -07:00
2019-09-02 17:56:41 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2017-10-11 16:54:48 -04:00
2020-06-18 12:21:25 -07:00
2020-07-03 11:05:50 -07:00
2019-06-19 09:48:12 -07:00
2019-10-11 10:13:21 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-07-03 11:05:50 -07:00
2020-07-29 09:43:33 -07:00
2019-10-09 10:36:03 -07:00
2020-07-03 11:05:50 -07:00
2020-07-03 11:05:50 -07:00
2019-06-20 18:29:02 -07:00
2020-07-03 11:05:50 -07:00
2020-06-09 21:24:09 -07:00
2020-07-03 11:05:50 -07:00
2020-06-09 10:15:08 -07:00
2020-07-29 17:04:34 -07:00
2020-07-29 16:35:33 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-06-18 12:20:38 -07:00
2020-07-29 16:35:33 -07:00
2020-06-18 12:21:32 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:18 -07:00
2020-07-29 09:43:33 -07:00
2020-06-09 21:24:09 -07:00