Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 18:04:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 18:04:51 -0500 Received: from tone.orchestra.cse.unsw.EDU.AU ([129.94.242.28]:34211 "HELO tone.orchestra.cse.unsw.EDU.AU") by vger.kernel.org with SMTP id ; Wed, 20 Nov 2002 18:04:49 -0500 From: Neil Brown To: Alan Cox Date: Thu, 21 Nov 2002 10:11:43 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15836.5807.792124.255167@notabene.cse.unsw.edu.au> Cc: Linux Kernel Mailing List , linux-raid@vger.kernel.org Subject: Re: RFC - new raid superblock layout for md driver In-Reply-To: message from Alan Cox on November 20 References: <15835.2798.613940.614361@notabene.cse.unsw.edu.au> <1037801381.3267.17.camel@irongate.swansea.linux.org.uk> X-Mailer: VM 7.07 under Emacs 20.7.2 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D On Wed, 2002-11-20 at 04:09, Neil Brown wrote: > > u32 set_uuid[4] > > Wouldnt u8 for the uuid avoid a lot of endian mess Probably.... This makes it very similar to 'name'. The difference if partly the intent for how user-space would use it, and partly that set_uuid must *never* change, while you would probably want name to be allowed to change. > > > u32 ctime > > Use some padding so you can go to 64bit times > Before or after? Or just make it 64bits of seconds now? 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. 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. Thanks. NeilBrown - 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/