Re: [Qemu-devel] [PATCH] qed: Fix consistency check on 32-bit hosts

2011-04-26 Thread Stefan Hajnoczi
On Tue, Apr 26, 2011 at 9:44 AM, Kevin Wolf wrote: > Am 24.04.2011 19:38, schrieb Stefan Hajnoczi: >> The qed_bytes_to_clusters() function is normally used with size_t >> lengths.  Consistency check used it with file size length and therefore >> failed on 32-bit hosts when the image file is 4 GB o

Re: [Qemu-devel] [PATCH] qed: Fix consistency check on 32-bit hosts

2011-04-26 Thread Kevin Wolf
Am 24.04.2011 19:38, schrieb Stefan Hajnoczi: > The qed_bytes_to_clusters() function is normally used with size_t > lengths. Consistency check used it with file size length and therefore > failed on 32-bit hosts when the image file is 4 GB or more. > > Make qed_bytes_to_clusters() explicitly 64-b

[Qemu-devel] [PATCH] qed: Fix consistency check on 32-bit hosts

2011-04-24 Thread Stefan Hajnoczi
The qed_bytes_to_clusters() function is normally used with size_t lengths. Consistency check used it with file size length and therefore failed on 32-bit hosts when the image file is 4 GB or more. Make qed_bytes_to_clusters() explicitly 64-bit and update consistency check to keep 64-bit cluster c