Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 22 Nov 2002 02:04:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 22 Nov 2002 02:04:21 -0500 Received: from adsl-206-170-148-147.dsl.snfc21.pacbell.net ([206.170.148.147]:46349 "EHLO gw.goop.org") by vger.kernel.org with ESMTP id ; Fri, 22 Nov 2002 02:04:20 -0500 Subject: Re: RFC - new raid superblock layout for md driver From: Jeremy Fitzhardinge To: Neil Brown Cc: Linux Kernel List , linux-raid@vger.kernel.org In-Reply-To: <15835.2798.613940.614361@notabene.cse.unsw.edu.au> References: <15835.2798.613940.614361@notabene.cse.unsw.edu.au> Content-Type: text/plain Organization: Message-Id: <1037949088.29451.20.camel@ixodes.goop.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 21 Nov 2002 23:11:28 -0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 23 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-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/