On Thu, Oct 24, 2019 at 03:50:03PM +0900, Damien Le Moal wrote:
> -     /* Do a report zone to get max_lba and the same field */
> -     ret = sd_zbc_do_report_zones(sdkp, buf, bufsize, 0, false);
> +     /* Do a report zone to get max_lba and the size of the first zone */
> +     ret = sd_zbc_do_report_zones(sdkp, buf, SD_BUF_SIZE, 0, false);

This is no longer reading all the zones here, so you could set the
'partial' field to true. And then since this was the only caller that
had set partial to false, you can also remove that parameter.

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to