Re: 2.6.4-mm1

Chris Friesen
2004-03-11T22:12:34Z

Joel Becker wrote:
> On Thu, Mar 11, 2004 at 09:43:54PM +0000, Joe Thornber wrote:
>
>>struct dm_ioctl { 0
>> uint32_t version[3];
>> uint32_t data_size; 4
>>
>> uint32_t data_start;
>>
>> uint32_t target_count;
>> int32_t open_count;
>> uint32_t flags; 8
>> uint32_t event_nr;
>> uint32_t padding; 10 ***
>
>
> Here's probably the problem. Many 64bit arches align 64bit
> numbers on a 64bit boundary. So it is adding 2 more words of padding to
> start the u64 at offset 12.

But wouldn't this be applied across the board and therefore still work?
Or is it defined as "packed" somewhere?

Chris

--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com