Re: [PATCH v2 12/12] t/zbd: Avoid inappropriate blkzone command call in zone_cap_bs

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

 



On Tue, Dec 14, 2021 at 10:24:13AM +0900, Damien Le Moal wrote:
> From: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
> 
> When the script test-zbd-support is run for regular block devices or
> SG nodes, blkzone command shall not be called. However, zone_cap_bs()
> helper function calls the command regardless of the zone model or
> device type, and results in error messages such as "unable to determine
> zone size" or "not a block device". Avoid the command call by returning
> the zone size argument passed to this function when the test device is
> a regular block device or a SG node.
> 
> Fixes: 1ae82d673cf5 ("t/zbd: Align block size to zone capacity")
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
> Signed-off-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Niklas Cassel <niklas.cassel@xxxxxxx>



[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