Skip to content

Commit

Permalink
SSV-22933: Do not include special mirror vdev size in ZPOOL_GET_SIZE_…
Browse files Browse the repository at this point in the history
…STATS ioctl response.
  • Loading branch information
datacore-rm committed Oct 16, 2023
1 parent c569116 commit 90d5992
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions module/os/windows/zfs/zvol_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90d5992

Please sign in to comment.