From 90d59924a6da40179e662ab785988409f19a8834 Mon Sep 17 00:00:00 2001 From: datacore-rm Date: Fri, 13 Oct 2023 20:32:24 +0530 Subject: [PATCH] SSV-22933: Do not include special mirror vdev size in ZPOOL_GET_SIZE_STATS ioctl response. --- module/os/windows/zfs/zvol_os.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module/os/windows/zfs/zvol_os.c b/module/os/windows/zfs/zvol_os.c index abf3c53d001b..d4de2233b085 100644 --- a/module/os/windows/zfs/zvol_os.c +++ b/module/os/windows/zfs/zvol_os.c @@ -1065,14 +1065,10 @@ fetch_zpool_stats(zpool_size_stats *zstats) { metaslab_class_t *mc = spa_normal_class(spa); zstats->alloc = metaslab_class_get_alloc(mc); - zstats->alloc += - metaslab_class_get_alloc(spa_special_class(spa)); zstats->alloc += metaslab_class_get_alloc(spa_dedup_class(spa)); zstats->size = metaslab_class_get_space(mc); - zstats->size += - metaslab_class_get_space(spa_special_class(spa)); zstats->size += metaslab_class_get_space(spa_dedup_class(spa)); mutex_exit(&spa->spa_props_lock); ret = 0;