mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
2ab24dfded
commit
a103ae446e
@@ -187,8 +187,6 @@ elif sys.platform.startswith('linux'):
|
||||
# reasons listed above can be used.
|
||||
#
|
||||
maybe = {
|
||||
'alloc_class/alloc_class_012_pos': ['FAIL', '9142'],
|
||||
'alloc_class/alloc_class_013_pos': ['FAIL', '9142'],
|
||||
'chattr/setup': ['SKIP', exec_reason],
|
||||
'cli_root/zdb/zdb_006_pos': ['FAIL', known_reason],
|
||||
'cli_root/zfs_get/zfs_get_004_pos': ['FAIL', known_reason],
|
||||
|
||||
Reference in New Issue
Block a user