All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] Bug?
@ 2006-07-24 15:08 Milind Dumbare
  2006-07-25  1:57 ` Lars Ellenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Milind Dumbare @ 2006-07-24 15:08 UTC (permalink / raw)
  To: drbd-dev

Hi,
First of all to tell I am working on x86_64 machine.

The structure ioctl_get_config has size 576(bytes) and its padded with
int (4byte) so it makes 580 (bytes). And compiler will align it to 584
(bytes), as 580 is not completely divisible by 8 while 584 is.

So don't you think drbd_sizeof_sanity_check.c:21 should be

        SZO(struct ioctl_get_config,    576)
rather than
        SZO(struct ioctl_get_config,    580)

after removing padding. It will also be alligned on 32 bit compilers.

-Thanks
-Milind


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Drbd-dev] Bug?
  2006-07-24 15:08 [Drbd-dev] Bug? Milind Dumbare
@ 2006-07-25  1:57 ` Lars Ellenberg
  2006-07-25  9:11   ` Milind Dumbare
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ellenberg @ 2006-07-25  1:57 UTC (permalink / raw)
  To: Milind Dumbare; +Cc: drbd-dev

/ 2006-07-24 20:38:33 +0530
\ Milind Dumbare:
> Hi,
> First of all to tell I am working on x86_64 machine.
> 
> The structure ioctl_get_config has size 576(bytes) and its padded with
> int (4byte) so it makes 580 (bytes). And compiler will align it to 584
> (bytes), as 580 is not completely divisible by 8 while 584 is.
>
> So don't you think drbd_sizeof_sanity_check.c:21 should be
> 
>        SZO(struct ioctl_get_config,    576)
> rather than
>        SZO(struct ioctl_get_config,    580)

when filing bugs, please state against which version you complain.
(in this case, I guess 8-pre something tarball).
when it is not the latest version, check whether it has already been
fixed, as I think for this issue recent versions (svn) are fixed, and
we now have compile time asserts instead of runtime asserts in place.

yes, we probably should upload some new 8pre-something tarballs.

thanks,

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Drbd-dev] Bug?
  2006-07-25  1:57 ` Lars Ellenberg
@ 2006-07-25  9:11   ` Milind Dumbare
  2006-07-25 21:49     ` Lars Ellenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Milind Dumbare @ 2006-07-25  9:11 UTC (permalink / raw)
  To: Lars Ellenberg; +Cc: drbd-dev

Lars Ellenberg wrote:

>/ 2006-07-24 20:38:33 +0530
>\ Milind Dumbare:
>  
>
>>Hi,
>>First of all to tell I am working on x86_64 machine.
>>
>>The structure ioctl_get_config has size 576(bytes) and its padded with
>>int (4byte) so it makes 580 (bytes). And compiler will align it to 584
>>(bytes), as 580 is not completely divisible by 8 while 584 is.
>>
>>So don't you think drbd_sizeof_sanity_check.c:21 should be
>>
>>       SZO(struct ioctl_get_config,    576)
>>rather than
>>       SZO(struct ioctl_get_config,    580)
>>    
>>
>
>when filing bugs, please state against which version you complain.
>(in this case, I guess 8-pre something tarball).
>when it is not the latest version, check whether it has already been
>fixed, as I think for this issue recent versions (svn) are fixed, and
>we now have compile time asserts instead of runtime asserts in place.
>
>yes, we probably should upload some new 8pre-something tarballs.
>
>thanks,
>
>  
>
Where can we access SVN from? Do everybody has access to it? What do I 
have to do if I want to have access if its resticted?
-Milind

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Drbd-dev] Bug?
  2006-07-25  9:11   ` Milind Dumbare
@ 2006-07-25 21:49     ` Lars Ellenberg
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ellenberg @ 2006-07-25 21:49 UTC (permalink / raw)
  To: Milind Dumbare; +Cc: drbd-dev

/ 2006-07-25 14:41:37 +0530
\ Milind Dumbare:
> Where can we access SVN from? Do everybody has access to it? What do I
> have to do if I want to have access if its resticted?

the first hit in google "drbd svn access" is
http://www.drbd.org/latest.html and explains it.

svn co http://svn.drbd.org/drbd/trunk/ drbd-latest
(which may well be in a state that does not even work at all.
 though we try to avoid non-working commits)

thanks,

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-25 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-24 15:08 [Drbd-dev] Bug? Milind Dumbare
2006-07-25  1:57 ` Lars Ellenberg
2006-07-25  9:11   ` Milind Dumbare
2006-07-25 21:49     ` Lars Ellenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.