lkml.org 
[lkml]   [2002]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: RFC - new raid superblock layout for md driver
From
Date
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.

>
> So:
> All values shall be little-endian and times shall be stored in 64
> bits with the top 20 bits representing microseconds (so we & with
> (1<<44)-1 to get seconds.

Could do - or struct timeval or whatever
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.076 / U:1.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site