Re: [PATCH v3 05/38] zbd: engines/libzbc: don't fail on assert for offline zones

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 07, 2021 / 06:57, Dmitry Fomichev wrote:
> If fio is run against a zoned device that has any zones in OFFLINE
> condition, the following assertion is raised -
> 
> fio: zbd.c:473: parse_zone_info: Assertion `z->wp <= z->start + zone_size' failed.
> 
> This happens because offline zones have no valid write pointer and
> it is reported by libzbc and blkzoned as (uint64_t)(-1). To avoid
> violating this assertion, set the write pointer in all offline zones
> to point at the start of the zone.
> 
> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx>

Looks good to me.

Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>

-- 
Best Regards,
Shin'ichiro Kawasaki



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux