[CRIU] [PATCH v5 4/5] aio: Restore aio ring content
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Mar 23 07:05:28 PDT 2016
On 23.03.2016 16:28, Pavel Emelyanov wrote:
>
>> +populate:
>> + count = raio->len - offsetof(struct aio_ring, io_events);
>> + builtin_memcpy((void *)ctx, ring, count);
>
> Ring header is at the beginning of the ring, and we don't want to
> overwrite it with memcpy, so shouldn't this be rather
>
> memcpy(ctx + offsetof(), rin + offsetof, count)
>
> ?
Oh, really. Thanks.
More information about the CRIU
mailing list