Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932786AbZGPQ6e (ORCPT ); Thu, 16 Jul 2009 12:58:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932614AbZGPQ6e (ORCPT ); Thu, 16 Jul 2009 12:58:34 -0400 Received: from cobra.newdream.net ([66.33.216.30]:33804 "EHLO cobra.newdream.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932582AbZGPQ6d (ORCPT ); Thu, 16 Jul 2009 12:58:33 -0400 Date: Thu, 16 Jul 2009 09:58:32 -0700 (PDT) From: Sage Weil To: Andi Kleen cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/20] ceph: on-wire types In-Reply-To: <878wiox10x.fsf@basil.nowhere.org> Message-ID: References: <1247693090-27796-1-git-send-email-sage@newdream.net> <1247693090-27796-2-git-send-email-sage@newdream.net> <1247693090-27796-3-git-send-email-sage@newdream.net> <878wiox10x.fsf@basil.nowhere.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1184 Lines: 37 On Thu, 16 Jul 2009, Andi Kleen wrote: > Sage Weil writes: > > + > > +/* > > + * Max file size is a policy choice; in reality we are limited > > + * by 2^64. > > + */ > > +#define CEPH_FILE_MAX_SIZE (1ULL << 40) /* 1 TB */ > > Seems odd to hardcode this here. It is. It's just an arbitrary value to bound recovery time... I'll switch it a server-specified value. > The way attribute packed is used in these files seems rather > random and adhoc, sometimes it is, sometimes it isn't. Not intentionally, it looks like it was missing on some structs that were already naturally aligned. I'll add it everywhere. > I assume you tested that 32bit and 64bit interoperability? Yes. > Is the file system supposed to be endian safe on the wire? Yes, although I don't have access to any big endian machines, so it hasn't been tested. We've been periodically running the code through sparse, though. Thanks! sage -- 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/