backend: fix verify issue during readwrite
authorAnkit Kumar <ankit.kumar@samsung.com>
Tue, 28 Jan 2025 19:41:36 +0000 (01:11 +0530)
committerVincent Fu <vincentfu@gmail.com>
Thu, 6 Mar 2025 18:58:43 +0000 (13:58 -0500)
commit981c372fb797e2edee55309d28b1028fba5e9b68
treeaa66d2bc384166168f20e951d8861084d1758831
parentb5ab9ba8e73692360e8ea5a5587724ecf74270f4
backend: fix verify issue during readwrite

In readwrite mode if specified io_size > size, offsets can overlap.
This will result in verify errors. Add check to handle this case.

Fixes: d782b76f ("Don break too early in readwrite mode")

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
backend.c