1 |
On Sun, Jun 02 2013, Alan Mackenzie wrote: |
2 |
|
3 |
> Hello, Jörg. |
4 |
> |
5 |
> On Sun, Jun 02, 2013 at 04:06:11PM +0200, Joerg Schilling wrote: |
6 |
>> Alan Mackenzie <acm@×××.de> wrote: |
7 |
> |
8 |
>> > The wikipedia page on Ext3 says that with a 1kB blocksize, the maximum |
9 |
>> > file size is 16GB, but with a 2kB blocksize it's 256GB. Could it be |
10 |
>> > you've somehow actually got a 1kB blocksize on the partition? |
11 |
> |
12 |
>> Where does such a strange limitation come from? |
13 |
> |
14 |
> Haven't a clue. I would have expected the maximum file size to be a |
15 |
> number of blocks, which makes it seem strange that doubling the block |
16 |
> size multiplies max file size by 16. |
17 |
|
18 |
|
19 |
The wonders of indirect blocks. When the blocksize doubles, a single |
20 |
indirect block points to twice as many direct blocks, each of which is |
21 |
double the size. For double indirect you get twice as many single |
22 |
indirect, etc. |
23 |
|
24 |
There are plenty of places to read about this. One is my lecture notes |
25 |
http://cs.nyu.edu/~gottlieb/courses/os/class-notes.html#inodes |
26 |
|
27 |
allan |