From: "Anthony Chee" Subject: Re: File size and block size Date: Thu, 18 Apr 2002 20:48:07 +0800 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <001101c1e6d7$4b0042f0$0100a8c0@winxp> Mime-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Return-path: Received: from winxp ([203.169.178.107]) by hkpa04.polyu.edu.hk (Netscape Messaging Server 4.15) with ESMTP id GURKV900.7FS for ; Thu, 18 Apr 2002 20:47:33 +0800 To: List-Id: linux-fsdevel.vger.kernel.org I found some relevant information in "Understanding the Linux Kernel, O'reilly" P.517, figure 17-5. It said EXT2_N_BLOCKS is 15. Does it mean the size of blocks pointed by 12, 13, 14 are also 15? And I extract a file stat from debugfs, BLOCKS: (0):1088, (1-11):16939-16949, (IND):16950, (12-22):16951-16961, (23-46):17961-17 984, (47-51):18059-18063 TOTAL: 53 Why there is only one IND, and no IND in 23-46? Thanks. ----- Original Message ----- From: "Bryan Henderson" To: "Anthony Chee" Cc: Sent: Thursday, April 18, 2002 8:54 AM Subject: Re: File size and block size > > >2. Copy a file with 34024 bytes to the target disk, it should occupy > >34024/1024 = 33.2 = 34 blocks. But I found that it occupied 35 blocks > > Remember the pointer blocks. That extra block contains the disk addresses > of the 34 data blocks. When you had only 4 blocks, their addresses fit in > the inode, so you didn't see additional pointer blocks. > > >