|
From: | Denis V. Lunev |
Subject: | Re: [Qemu-devel] [PATCH] block: change default for discard and write zeroes to INT_MAX |
Date: | Mon, 2 Feb 2015 20:40:59 +0300 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 02/02/15 20:34, Paolo Bonzini wrote:
On 02/02/2015 18:00, Denis V. Lunev wrote:You are absolutely correct for NBD case but I do not get the point about SIZE_MAX for gluster. There is no such definition in their git at git://github.com/gluster/glusterfs nor in public API headers in Ubuntu :(SIZE_MAX is defined in stdint.h (provided by the C library). Paolo
In this case the code should avoid overflow on 64bit arch. OK, re-spinning.
[Prev in Thread] | Current Thread | [Next in Thread] |