Re: RFC - new raid superblock layout for md driver

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

 



On Wednesday 20 November 2002 07:30 pm, Alan Cox wrote:
> On Wed, 2002-11-20 at 23:11, Neil Brown wrote:
> > This brings up endian-ness?  Should I assert 'little-endian' or should
> > the code check the endianness of the magic number and convert if
> > necessary?
> > The former is less code which will be exercised more often, so it is
> > probably safe.
>
> From my own experience pick a single endianness otherwise some tool will
> always get one endian case wrong on one platform with one word size.
>
Use network byte order. hton[sl] macros already exist.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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