Steven Hartland
2e215fecbe
OpenZFS 7885 - zpool list can report 16.0e for expandsz
...
Authored by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
When a member of a RAIDZ has been replaced with a device smaller than
the original, then the top level vdev can report its expand size as
16.0E.
The reduced child asize causes the RAIDZ to have a vdev_asize lower than
its vdev_max_asize which then results in an underflow during the
calculation of the parents expand size.
Fix this by updating the vdev_asize if it shrinks, which is already
protected by a check against vdev_min_asize so should always be safe.
Also for RAIDZ vdevs, ensure that the sum of their child vdev_min_asize
is always greater than the parents vdev_min_size.
Reviewed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: George Melikov <mail@gmelikov.ru>
OpenZFS-issue: https://www.illumos.org/issues/7885
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/bb0dbaa
Closes #5963
2017-04-05 09:33:20 -07:00
..
2017-03-29 12:24:51 -07:00
2017-03-20 18:36:00 -07:00
2016-11-29 14:34:27 -08:00
2015-01-16 14:41:26 -08:00
2017-02-09 10:19:12 -08:00
2017-01-17 14:49:24 -08:00
2016-10-07 13:19:43 -07:00
2016-09-13 09:58:33 -07:00
2017-03-20 18:36:00 -07:00
2015-01-16 14:41:26 -08:00
2016-12-02 16:59:35 -07:00
2016-09-13 09:58:33 -07:00
2017-02-24 13:34:26 -08:00
2017-03-20 18:36:00 -07:00
2017-02-04 09:10:24 -08:00
2016-11-02 12:14:45 -07:00
2017-03-20 12:33:17 -07:00
2016-12-12 10:46:26 -08:00
2017-02-07 09:44:03 -08:00
2017-03-20 18:36:00 -07:00
2017-03-20 18:36:00 -07:00
2017-02-02 14:13:41 -08:00
2017-03-20 18:36:00 -07:00
2017-02-09 10:19:12 -08:00
2016-08-31 14:35:34 -07:00
2017-01-27 11:43:42 -08:00
2017-03-07 09:51:59 -08:00
2017-03-23 18:20:58 -07:00
2016-12-20 18:46:59 -08:00
2017-01-27 11:43:42 -08:00
2015-05-04 09:41:10 -07:00
2016-06-28 13:47:03 -07:00
2016-11-29 14:34:27 -08:00
2016-12-12 10:46:26 -08:00
2017-03-22 17:58:47 -07:00
2017-01-03 11:31:18 -06:00
2015-01-16 14:41:26 -08:00
2017-03-22 17:58:47 -07:00
2017-02-01 13:14:02 -08:00
2017-03-20 18:36:00 -07:00
2016-04-21 09:49:25 -07:00
2017-01-22 13:25:40 -08:00
2017-03-22 17:58:47 -07:00
2017-03-22 17:58:47 -07:00
2016-08-31 14:35:34 -07:00
2017-02-28 16:10:18 -08:00
2017-01-03 11:31:18 -06:00
2017-01-26 14:43:28 -08:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2010-08-31 13:41:58 -07:00
2017-01-03 11:31:18 -06:00
2014-08-06 14:48:41 -07:00
2016-08-11 11:23:49 -07:00
2017-03-22 17:58:47 -07:00
2017-01-03 11:31:18 -06:00
2017-03-23 18:20:58 -07:00
2017-01-12 11:52:56 -08:00
2017-01-12 09:42:11 -08:00
2016-05-26 10:11:51 -07:00
2016-12-02 16:57:49 -07:00
2015-07-14 10:35:21 -07:00
2016-08-31 14:35:34 -07:00
2017-03-28 11:06:22 -07:00
2017-02-04 09:23:50 -08:00
2016-12-21 10:47:15 -08:00
2017-01-12 09:42:11 -08:00
2017-01-22 13:25:40 -08:00
2015-04-30 15:07:47 -07:00
2016-12-12 10:46:26 -08:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-12-15 17:31:33 -08:00
2016-12-12 10:46:26 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2017-01-22 13:25:40 -08:00
2017-03-29 12:24:51 -07:00
2013-10-31 14:58:04 -07:00
2017-04-05 09:33:20 -07:00
2017-02-02 14:13:41 -08:00
2017-03-07 09:51:59 -08:00
2017-03-07 09:51:59 -08:00
2017-01-17 14:46:28 -08:00
2017-01-12 09:42:11 -08:00
2017-03-10 09:51:33 -08:00
2010-08-31 13:41:58 -07:00
2017-03-10 09:51:41 -08:00
2017-01-28 12:16:43 -08:00
2017-03-10 09:51:33 -08:00
2017-04-03 14:23:02 -07:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:41 -08:00
2017-01-12 09:42:11 -08:00
2015-06-22 17:02:13 -07:00
2017-03-10 09:51:33 -08:00
2017-01-03 11:31:18 -06:00
2017-03-10 09:51:33 -08:00
2017-03-13 17:42:42 -07:00
2017-03-10 09:51:35 -08:00
2017-03-23 18:26:50 -07:00
2017-03-23 18:20:58 -07:00
2017-03-29 12:24:51 -07:00
2016-11-29 14:34:27 -08:00
2016-12-01 16:36:25 -07:00
2017-03-29 12:24:51 -07:00
2010-05-28 13:45:14 -07:00
2017-03-20 17:51:16 -07:00
2016-12-12 10:46:26 -08:00
2017-03-10 09:51:33 -08:00
2017-03-20 17:51:16 -07:00
2017-03-10 09:51:41 -08:00
2017-03-10 09:51:33 -08:00
2017-01-23 10:35:58 -08:00
2017-03-09 17:43:36 -08:00