From bcb1a8a25e4ee9a94478378710de53b45a9b1517 Mon Sep 17 00:00:00 2001 From: Yuri Pankov Date: Wed, 6 Dec 2017 08:19:31 +0300 Subject: [PATCH] OpenZFS 8898 - creating fs with checksum=skein on the boot pools fails ungracefully Authored by: Yuri Pankov Reviewed by: Toomas Soome Reviewed by: Andy Stormont Reviewed-by: George Melikov Approved by: Dan McDonald Ported-by: Brian Behlendorf OpenZFS-issue: https://www.illumos.org/issues/8898 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/9fa2266d9a Closes #7031 --- lib/libzfs/libzfs_dataset.c | 6 +++++- man/man8/zfs.8 | 6 +++++- 2 files changed, 10 insertions(+), 2 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 . * 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 * 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: /* diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index 46b0a5130..85f510d36 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -29,7 +29,7 @@ .\" Copyright 2016 Richard Laager. All rights reserved. .\" Copyright 2017 Nexenta Systems, Inc. .\" -.Dd June 28, 2017 +.Dd January 10, 2018 .Dt ZFS 8 SMM .Os Linux .Sh NAME @@ -1099,6 +1099,10 @@ Please see for more information on these algorithms. .Pp Changing this property affects only newly-written data. +.Pp +Salted checksum algorithms +.Pq Cm edonr , skein +are currently not supported for any filesystem on the boot pools. .It Xo .Sy compression Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy gzip Ns | Ns .Sy gzip- Ns Em N Ns | Ns Sy lz4 Ns | Ns Sy lzjb Ns | Ns Sy zle -- 2.40.0