Re: file size limit

Riley Williams (rhw@MemAlpha.CX)
Sat, 5 Jun 1999 23:32:56 +0100 (GMT)


Hi Jan.

>> {Sigh} Never having had disks big enough to hit that limit, I
>> wasn't aware of it. However, would I be right in thinking the
>> said limit goes up if one uses 4k blocks? If so, what to?

> Yes.

> With 4KB blocks you can address 1024*1024*1024*4096 bytes = 4TB
> in ext2.

Let's see if I've understood that correctly:

Block size Can address Total Formula
~~~~~~~~~~ ~~~~~~~~~~~ ~~~~~ ~~~~~~~
1k 256*256*256*1024 16G (1k)^4/64
4k 1024*1024*1024*4096 4T (4k)^4/64

Presumably...

2k 512*512*512*2048 256G (2k)^4/64
8k 2048*2048*2048*8192 64T (8k)^4/64

If so, then for any given block size B, we can address (B^4)/64 blocks
using the ext2 file system?

Would I also be right in thinking that if we were able to do one more
level of indirect block, we would multiply the capacities by B/4 in
each case, giving capacities of 4T, 64T, 1E and 16E for ext2 file
systems using 1k, 2k, 4k and 8k blocks respctively?

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/