From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mescal.linbit (213-229-1-138.sdsl-line.inode.at [213.229.1.138]) by mail.linbit.com (LINBIT Mail Daemon) with ESMTP id 87DEC14314 for ; Fri, 24 Sep 2004 14:07:53 +0200 (CEST) From: Philipp Reisner To: drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] Re: [DRBD-cvs] r1559 - in branches/drbd-0.7: drbd user Date: Fri, 24 Sep 2004 14:08:14 +0200 References: <20040924111354.399A13BE6E@garcon.linbit.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200409241408.14509.philipp.reisner@linbit.com> List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Friday 24 September 2004 13:40, Lars Ellenberg wrote: > [ bitte reply-to in drbd-cvs auf drbd-dev setzen ] > ack. done. > > -#define DRBD_MAX_SECTORS \ > > +#if ( !defined(CONFIG_LBD) ) && ( BITS_PER_LONG == 32 ) > > +# define DRBD_MAX_SECTORS (0xffffffffLU) > > +#else > > +# define DRBD_MAX_SECTORS \ > > ( (MD_RESERVED_SIZE*2LL - MD_BM_OFFSET) * > > (1LL<<(BM_EXT_SIZE_B-9)) ) +#endif > > oh well... > why not simple (sector_t) ? > just because it is then 0xffdc0000 instead of 0xffffffff ? > so what ... I did not know that it would be 0xffdc0000, I did not do the math... , OTOH it is made it explicit. -philipp -- : Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schönbrunnerstr 244, 1120 Vienna, Austria http://www.linbit.com :