[DRBD-user] Re: [DRBD-announce] drbd-8.0pre3.tar.gz

Ard van Breemen ard at kwaak.net
Wed May 3 09:18:58 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


ME TOO!
:-)

On Tue, Apr 25, 2006 at 03:48:00PM +0200, Guido Guenther wrote:
> Apr 25 12:56:11 testav0109 kernel: sizeof(struct ioctl_get_config): 584
> != 580
> Apr 25 12:56:11 testav0109 kernel: ioctls won't work, aborting
> 
> this is due to the fact that sizeof(ioctl_get_config) % 8 != 0 on amd64
> now. After removing _pad it looks better:
> 
> --- bla/drbd-8.0pre3/drbd/linux/drbd.h	2006-04-07 15:56:50.000000000 +0200
> +++ drbd-8.0pre3/drbd/linux/drbd.h	2006-04-25 15:42:56.000000000 +0200
> @@ -295,7 +295,6 @@
>  	OUT int               meta_device_minor;
>  	OUT int               meta_index;
>  	OUT drbd_state_t      state;
> -	int                   _pad;
>  };

The question is how to resolve this permanently.
The easiest way is to generate drbd_sizeof_sanity_check.c by the
compiler that also compiles drbdsetup or at least the one that
compiles the module.

Hmmm...
I am getting this:
sizeof(struct ioctl_get_config): 576 != 580
when I remove the _pad...

/me wil make a drbd_sizeof_sanity_check.c generator...

-- 
begin  LOVE-LETTER-FOR-YOU.txt.vbs
I am a signature virus. Distribute me until the bitter
end



More information about the drbd-user mailing list