From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 28FAA1381F3 for ; Sun, 2 Jun 2013 15:10:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FA13E0A82; Sun, 2 Jun 2013 15:10:20 +0000 (UTC) Received: from smtp.cs.nyu.edu (SMTP.CS.NYU.EDU [128.122.49.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72663E0A52 for ; Sun, 2 Jun 2013 15:10:19 +0000 (UTC) Received: from newlap.localdomain (ool-182de1a5.dyn.optonline.net [24.45.225.165]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.14.4) with ESMTP id r52FA9wo007726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 2 Jun 2013 11:10:17 -0400 (EDT) Received: by newlap.localdomain (Postfix, from userid 1000) id 5B69EA01F4; Sun, 2 Jun 2013 11:10:08 -0400 (EDT) From: gottlieb@nyu.edu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ext3 FS File Size Limits References: <20130602045540.9e274421fd39338ae764a06f@gmail.com> <20130602130122.GB3401@acm.acm> <51ab5153.cdaeWPWIbd5YtZhM%Joerg.Schilling@fokus.fraunhofer.de> <20130602142835.GC3401@acm.acm> Date: Sun, 02 Jun 2013 11:10:08 -0400 In-Reply-To: <20130602142835.GC3401@acm.acm> (Alan Mackenzie's message of "Sun, 2 Jun 2013 14:28:35 +0000") Message-ID: <87ppw45z1r.fsf@nyu.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0753bfb8-6266-491a-8a76-e4ccd0505386 X-Archives-Hash: 2c476c26362c0aa5e5492fb5cfb7c955 On Sun, Jun 02 2013, Alan Mackenzie wrote: > Hello, J=C3=B6rg. > > On Sun, Jun 02, 2013 at 04:06:11PM +0200, Joerg Schilling wrote: >> Alan Mackenzie wrote: > >> > The wikipedia page on Ext3 says that with a 1kB blocksize, the maximum >> > file size is 16GB, but with a 2kB blocksize it's 256GB. Could it be >> > you've somehow actually got a 1kB blocksize on the partition? > >> Where does such a strange limitation come from? > > Haven't a clue. I would have expected the maximum file size to be a > number of blocks, which makes it seem strange that doubling the block > size multiplies max file size by 16. The wonders of indirect blocks. When the blocksize doubles, a single indirect block points to twice as many direct blocks, each of which is double the size. For double indirect you get twice as many single indirect, etc. There are plenty of places to read about this. One is my lecture notes http://cs.nyu.edu/~gottlieb/courses/os/class-notes.html#inodes allan