Re: [PATCH 6/6] t/zbd: Remove unnecessary option for zbc_reset_zone

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

 



On Thu, 2020-08-13 at 13:57 +0900, Shin'ichiro Kawasaki wrote:
> When -all option is specified, zbc_reset_zone command does not take
> offset option. Remove it.
> 
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
> ---
>  t/zbd/functions | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/t/zbd/functions b/t/zbd/functions
> index 81b6f3f7..1a64a215 100644
> --- a/t/zbd/functions
> +++ b/t/zbd/functions
> @@ -185,7 +185,7 @@ reset_zone() {
>  	fi
>      else
>  	if [ "$offset" -lt 0 ]; then
> -	    ${zbc_reset_zone} -all "$dev" "${offset}" >/dev/null
> +	    ${zbc_reset_zone} -all "$dev" >/dev/null
>  	else
>  	    ${zbc_reset_zone} -sector "$dev" "${offset}" >/dev/null
>  	fi

Nice find. Is seems to fix -r option in test-zbd-support script too :)
Reviewed-by: Dmitry Fomichev: <dmitry.fomichev@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