qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [Qemu-devel] [PATCH] xen_disk: convert discard input to


From: Olaf Hering
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH] xen_disk: convert discard input to byte ranges
Date: Tue, 22 Nov 2016 18:00:01 +0100
User-agent: Mutt/1.6.2 (6759)

On Tue, Nov 22, Eric Blake wrote:

> if (sec_start + sec_count < sec_count ||
>     sec_start > (INT64_MAX >> BDRV_SECTOR_BITS) - sec_count) {
>     return false;
> }

My point was: how does this handle sec_start=0,sec_count=UINT64_MAX or
sec_start=INT64_MAX,sec_count=INT64_MAX? For me this gets past the if().

Olaf

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]