From faf6a99a3dd3cbf4fbacc0392dc89555db42016e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 11 Oct 2024 07:18:04 +0200 Subject: IMP: Drive Manager improvements and to the JSON C++ API. --- dev/zka/src/Storage/ATADeviceInterface.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/zka/src/Storage') diff --git a/dev/zka/src/Storage/ATADeviceInterface.cxx b/dev/zka/src/Storage/ATADeviceInterface.cxx index 78abada0..d9c8a71f 100644 --- a/dev/zka/src/Storage/ATADeviceInterface.cxx +++ b/dev/zka/src/Storage/ATADeviceInterface.cxx @@ -43,7 +43,7 @@ ATADeviceInterface& ATADeviceInterface::operator<<(MountpointInterface* Data) if (!Data) return *this; - for (SizeT driveCount = 0; driveCount < kDriveMgrCount; ++driveCount) + for (SizeT driveCount = 0; driveCount < kMaxDriveCountPerMountpoint; ++driveCount) { auto interface = Data->GetAddressOf(driveCount); if ((interface) && rt_string_cmp((interface)->fDriveKind(), "ATA-", 5) == 0) @@ -69,7 +69,7 @@ ATADeviceInterface& ATADeviceInterface::operator>>(MountpointInterface* Data) if (!Data) return *this; - for (SizeT driveCount = 0; driveCount < kDriveMgrCount; ++driveCount) + for (SizeT driveCount = 0; driveCount < kMaxDriveCountPerMountpoint; ++driveCount) { auto interface = Data->GetAddressOf(driveCount); if ((interface) && rt_string_cmp((interface)->fDriveKind(), "ATA-", 5) == 0) -- cgit v1.2.3