Re: Size of struct hd_driveid in hdreg.h (2.2+IDE-patch, 2.3)

From: Andre Hedrick (andre@suse.com)
Date: Thu Mar 16 2000 - 21:53:29 EST


I know and have fixed it.........

On Thu, 16 Mar 2000, Ville Herva wrote:

> #include <stdio.h>
> #include <linux/hdreg.h>
>
> int main()
> {
> struct hd_driveid id;
> printf("sizeof struct hd_driveid: %d\n", sizeof (id));
> return 0;
> }
>
>
> I assume this should return 512, right?
>
> With pristine 2.2.14 headers: 512
> 2.2.14 + ide.2.2.14.20000124.patch.bz2: 516
> 2.2.15pre12 + ide.2.2.15-10.20000226.patch.bz2: 516
> 2.2.15pre14 + ide.2.2.15-13.20000308.patch.bz2 516
> 2.3.49 516
> 2.3.51 516
> 2.3.99pre1 516
>
> This break (at least) vmware. So if the padding is wrong (and it in fact
> should be 512) perhaps you can fix it. If it should be 516, vmware has to
> be fixed...
>
>
>
> -- v --
>
> v@iki.fi
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:20 EST