aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYuri Pankov <[email protected]>2017-12-06 08:19:31 +0300
committerBrian Behlendorf <[email protected]>2018-01-11 13:53:04 -0800
commitbcb1a8a25e4ee9a94478378710de53b45a9b1517 (patch)
tree855c46755f79b1253220b47b96371a58f1b6cdc1 /lib
parent8198c57b21d5e503f7e72221aa714aaabb2079cc (diff)
OpenZFS 8898 - creating fs with checksum=skein on the boot pools fails ungracefully
Authored by: Yuri Pankov <[email protected]> Reviewed by: Toomas Soome <[email protected]> Reviewed by: Andy Stormont <[email protected]> Reviewed-by: George Melikov <[email protected]> Approved by: Dan McDonald <[email protected]> Ported-by: Brian Behlendorf <[email protected]> OpenZFS-issue: https://www.illumos.org/issues/8898 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/9fa2266d9a Closes #7031
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_dataset.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c
index a0a0afe1f..1a4bad18c 100644
--- a/lib/libzfs/libzfs_dataset.c
+++ b/lib/libzfs/libzfs_dataset.c
@@ -27,7 +27,7 @@
* Copyright (c) 2012 Pawel Jakub Dawidek <[email protected]>.
* Copyright (c) 2013 Martin Matuska. All rights reserved.
* Copyright (c) 2013 Steven Hartland. All rights reserved.
- * Copyright 2016 Nexenta Systems, Inc.
+ * Copyright 2017 Nexenta Systems, Inc.
* Copyright 2016 Igor Kozhukhov <[email protected]>
* Copyright 2017 RackTop Systems.
*/
@@ -3583,6 +3583,10 @@ zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type,
"or provided"));
return (zfs_error(hdl, EZFS_CRYPTOFAILED, errbuf));
+ case ERANGE:
+ zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
+ "invalid property value(s) specified"));
+ return (zfs_error(hdl, EZFS_BADPROP, errbuf));
#ifdef _ILP32
case EOVERFLOW:
/*