pyocf: rio: Fix offset

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Robert Baldyga
2024-02-02 17:53:31 +01:00
committed by Michal Mielewczyk
parent 16830cd3c3
commit d892e3b0d5
3 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
#
# Copyright(c) 2019-2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -174,7 +175,7 @@ def test_promoted_after_hits_various_thresholds(pyocf_ctx, insertion_threshold,
.bs(Size(4096))
.offset(last_core_line)
.target(vol)
.size(Size(4096) + last_core_line)
.size(Size(4096))
)
for i in range(insertion_threshold - 1):

View File

@@ -1,5 +1,6 @@
#
# Copyright(c) 2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -81,7 +82,7 @@ def test_test_standby_io_metadata(pyocf_ctx, cacheline_size):
.target(cache_vol)
.njobs(num_jobs)
.readwrite(ReadWrite.RANDWRITE)
.size(io_offset + io_size)
.size(io_size)
.bs(Size.from_KiB(16))
.offset(io_offset)
.qd(qd)