Re: double indirect block+inode
- From: "robertwessel2@xxxxxxxxx" <robertwessel2@xxxxxxxxx>
- Date: 28 Mar 2006 01:31:27 -0800
eksamor@xxxxxxxxx wrote:
Ok that makes sense. If there is 15 pointers where the first 12 are
direct pointers to data block and the last 3 are pointers to indirect
blocks (single, double, triple) would the first pointer then point to
the first data block of the file and the last used pointer point to the
last block of data for the file?
This is usenet, please quote properly.
The first twelve pointers (#0-#11) in the inode will point to the first
twelve data blocks in the file (#0-#11). Assuming 4K blocks and 32 bit
pointers: Inode pointer #12 will point to the single indirect block,
which in turn points to data blocks 12-1035, #13 points to the double
indirect block, which in turn covers data blocks 1036-1049611, and
pointer #14 in the inode points to the triple indirect block which
covers data blocks 1049612-1074791435.
As an example, if the last block in the file is #3000, it would be
pointed to by the 965th entry in the second single indirect block
pointed to by the double indirect block pointed to by pointer #13 in
the inode.
Always assuming my arithmetic is correct...
.
- References:
- double indirect block+inode
- From: eksamor
- Re: double indirect block+inode
- From: robertwessel2@xxxxxxxxx
- Re: double indirect block+inode
- From: eksamor
- double indirect block+inode
- Prev by Date: Re: Misuse of for
- Next by Date: Re: String concatenation design
- Previous by thread: Re: double indirect block+inode
- Next by thread: Re: double indirect block+inode
- Index(es):
Relevant Pages
|