aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2018-01-21 23:57:41 +0000
committerAlexander Motin <mav@FreeBSD.org>2018-01-21 23:57:41 +0000
commit4c30fea80949c0e11b7fee948c29f59d73653ac4 (patch)
tree9be77771f8175fb92732a404a48dcf41300fec1f /lib
parentadbaf378293ad9762b2d9ad2725e11ae8144ea58 (diff)
downloadsrc-4c30fea80949c0e11b7fee948c29f59d73653ac4.tar.gz
src-4c30fea80949c0e11b7fee948c29f59d73653ac4.zip
8898 creating fs with checksum=skein on the boot pools fails ungracefully
illumos/illumos-gate@9fa2266d9a78b8366e1cd2d5f050e8b5e37d558c https://www.illumos.org/issues/8898: # zfs create -o checksum=skein rpool/test internal error: Result too large Abort (core dumped) Not a big deal per se, but should be handled correctly. Also reported as: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222199 Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com> Author: Yuri Pankov <yuri.pankov@nexenta.com>
Notes
Notes: svn path=/vendor/illumos/dist/; revision=328233
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/common/libzfs_dataset.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libzfs/common/libzfs_dataset.c b/lib/libzfs/common/libzfs_dataset.c
index 68f9a53d2318..eb26b711314b 100644
--- a/lib/libzfs/common/libzfs_dataset.c
+++ b/lib/libzfs/common/libzfs_dataset.c
@@ -28,7 +28,7 @@
* Copyright (c) 2013 Martin Matuska. All rights reserved.
* Copyright (c) 2013 Steven Hartland. All rights reserved.
* Copyright (c) 2014 Integros [integros.com]
- * Copyright 2016 Nexenta Systems, Inc.
+ * Copyright 2017 Nexenta Systems, Inc.
* Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>
* Copyright 2017 RackTop Systems.
*/
@@ -3476,6 +3476,10 @@ zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type,
"pool must be upgraded to set this "
"property or value"));
return (zfs_error(hdl, EZFS_BADVERSION, 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:
/*