From: Trond Myklebust Subject: Re: stat64 for over 2TB file returned invalid st_blocks Date: Thu, 08 Dec 2005 10:03:14 -0500 Message-ID: <1134054194.7998.47.camel@lade.trondhjem.org> References: <000001c5fb1d$0a27c8d0$4168010a@bsd.tnes.nec.co.jp> <1133963528.27373.4.camel@lade.trondhjem.org> <1133967716.8910.5.camel@kleikamp.austin.ibm.com> <1133969671.27373.47.camel@lade.trondhjem.org> <1133973247.8907.33.camel@kleikamp.austin.ibm.com> <02ab01c5fbeb$faf7d740$4168010a@bsd.tnes.nec.co.jp> <1134052043.7998.26.camel@lade.trondhjem.org> <1134053446.17436.51.camel@imp.csi.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Takashi Sato , Dave Kleikamp , 'Andreas Dilger' , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: To: Anton Altaparmakov In-Reply-To: <1134053446.17436.51.camel@imp.csi.cam.ac.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 2005-12-08 at 14:50 +0000, Anton Altaparmakov wrote: > And it breaks applications, too (e.g. du will then report all your files > to be zero size)... That's not a problem. We have our own ->getattr() method, so we can set stat->blocks to the correct value. The only real side effect is therefore that we waste space in the inode. Cheers, Trond