svn commit: r329736 - vendor-sys/illumos/dist/uts/common/fs/zfs
Alexander Motin
mav at FreeBSD.org
Wed Feb 21 18:09:08 UTC 2018
Author: mav
Date: Wed Feb 21 18:09:07 2018
New Revision: 329736
URL: https://svnweb.freebsd.org/changeset/base/329736
Log:
8969 Cannot boot from RAIDZ with parity > 1
illumos/illumos-gate at 0fb055e81fd0cda5221da8ddd98b2f8d1fc6bdbe
At present it is possible to boot from a root pool that is on RAIDZ but not
one that is on RAIDZ2 or RAIDZ3. This is because, at the time the pool
version is checked to ensure support for dual/triple parity, the uberblock
has not yet been loaded into the SPA and therefore the code determines that
the pool version is too old and returns ENOTSUP.
Reviewed by: Igor Kozhukhov <igor at dilos.org>
Reviewed by: Andriy Gapon <avg at FreeBSD.org>
Reviewed by: Pavel Zakharov <pavel.zakharov at delphix.com>
Reviewed by: Andy Stormont <astormont at racktopsystems.com>
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Gordon Ross <gwr at nexenta.com>
Author: Andy Fiddaman <omnios at citrus-it.co.uk>
Modified:
vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c
Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c Wed Feb 21 17:46:13 2018 (r329735)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/spa.c Wed Feb 21 18:09:07 2018 (r329736)
@@ -29,6 +29,7 @@
* Copyright 2016 Toomas Soome <tsoome at me.com>
* Copyright 2017 Joyent, Inc.
* Copyright (c) 2017 Datto Inc.
+ * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
*/
/*
@@ -4051,6 +4052,9 @@ spa_import_rootpool(char *devpath, char *devid)
spa = spa_add(pname, config, NULL);
spa->spa_is_root = B_TRUE;
spa->spa_import_flags = ZFS_IMPORT_VERBATIM;
+ if (nvlist_lookup_uint64(config, ZPOOL_CONFIG_VERSION,
+ &spa->spa_ubsync.ub_version) != 0)
+ spa->spa_ubsync.ub_version = SPA_VERSION_INITIAL;
/*
* Build up a vdev tree based on the boot device's label config.
More information about the svn-src-vendor
mailing list