zfs/tests/zfs-tests/tests/functional/alloc_class
Matthew Ahrens 71e4ce0e52
special device removal space accounting fixes
The space in special devices is not included in spa_dspace (or
dsl_pool_adjustedsize(), or the zfs `available` property).  Therefore
there is always at least as much free space in the normal class, as
there is allocated in the special class(es).  And therefore, there is
always enough free space to remove a special device.

However, the checks for free space when removing special devices did not
take this into account.  This commit corrects that.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #11329
2020-12-17 12:11:56 -08:00
..
Makefile.am tests: fix cosmetic permission issues during `make install` 2019-05-28 15:07:24 -07:00
alloc_class.cfg Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class.kshlib Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_001_pos.ksh Fix pool creation with feature@allocation_classes disabled 2019-10-10 16:39:41 -07:00
alloc_class_002_neg.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_003_pos.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_004_pos.ksh Use compatible arg order in tests 2019-08-29 11:03:09 -07:00
alloc_class_005_pos.ksh Use compatible arg order in tests 2019-08-29 11:03:09 -07:00
alloc_class_006_pos.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_007_pos.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_008_pos.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_009_pos.ksh ZTS: minor improvements to alloc_class_009_pos functional test 2020-07-30 09:11:05 -07:00
alloc_class_010_pos.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00
alloc_class_011_neg.ksh Increase allowed 'special_small_blocks' maximum value 2019-12-03 09:58:03 -08:00
alloc_class_012_pos.ksh special device removal space accounting fixes 2020-12-17 12:11:56 -08:00
alloc_class_013_pos.ksh Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
cleanup.ksh ZTS: Use default_cleanup_noexit where needed 2020-03-17 09:55:18 -07:00
setup.ksh Pool allocation classes 2018-09-05 18:33:36 -07:00