Commit 2e6e9553 authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Tomasz Zawadzki
Browse files

raid: update base_info->blockcnt



Update this to print a correct value if the base bdev is resized more
than once.

Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Change-Id: I62ee655cdb84b01a35d5f74b42f95f832ef0a1e6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22442


Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 9b61146f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2235,6 +2235,8 @@ raid_bdev_resize_base_bdev(struct spdk_bdev *base_bdev)
	SPDK_NOTICELOG("base_bdev '%s' was resized: old size %" PRIu64 ", new size %" PRIu64 "\n",
		       base_bdev->name, base_info->blockcnt, base_bdev->blockcnt);

	base_info->blockcnt = base_bdev->blockcnt;

	if (!raid_bdev->module->resize) {
		return;
	}