Re: [RFC/PATCH 0/6] DDF: safe big-endian types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 21 Jul 2013 19:28:18 +0200 mwilck@xxxxxxxx wrote:

> Hi Neil, hello list,
> 
> please review this patch series. I made so many endianness bugs
> while working on DDF during the last months that I thought this
> might be helpful - it will cause bugs to be caught by the
> compiler which may otherwise turn up as hard-to-find runtime errors.

I like this a lot - thanks!

> 
> Note that the code  *does not* compile after each patch, only 
> after the last one. I broke it down to make it more readable.
> 
> Patch 0005 and 0006 are separate because they are actual minor bugs
> in the code that the endianness patch set helped me find.

I really prefer the compile to never break.  Thanks for highlighting those
two fixes more me, but I've taken the liberty of just merging them back to
where they are needed.

I applied these and all the other patches you sent and pushed it all out.

Thanks a lot!

NeilBrown


> 
> I verified that the DDF unit tests aren't broken by this patch set.
> 
> Martin
> 
> Martin Wilck (6):
>   DDF: add endian-safe typedefs
>   DDF: convert big endian to be32 type
>   DDF: convert big-endian __u64 to be64 type
>   DDF: convert big-endian __u16 to be16 type
>   DDF: add_other_bvd: fix endianness bug
>   DDF: ddf_set_disk: fix minor endianness bug
> 
>  super-ddf.c |  851 ++++++++++++++++++++++++++++++++---------------------------
>  1 files changed, 462 insertions(+), 389 deletions(-)

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux