Re: RFC - new raid superblock layout for md driver

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

 



On Tue, 2002-11-19 at 20:09, Neil Brown wrote:
> My current design looks like:
> 	/* constant array information - 128 bytes */
>     u32  md_magic
>     u32  major_version == 1
>     u32  feature_map     /* bit map of extra features in superblock */
>     u32  set_uuid[4]
>     u32  ctime
>     u32  level
>     u32  layout
>     u64  size		/* size of component devices, if they are all
> 			 * required to be the same (Raid 1/5 */
Can you make 64 bit fields 64 bit aligned?  I think PPC will lay this
structure out with padding before size, which may well cause confusion. 
If your routines to load and save the header don't depend on structure
layout, then it doesn't matter.
        J

-
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