On Thu 22 Feb 2018 04:59:22 PM CET, Eric Blake wrote: > sector_offset = coffset & 511; > csize = nb_csectors * 512 - sector_offset; [...] > + assert(csize < 2 * s->cluster_size);
I think it should be <= If sector_offset is 0 and nb_csector is the maximum allowed value then csize is exactly 2 * s->cluster_size bytes. Berto