Hello,
I work with an AIX Release 3, version 4.
I found that in practice, the maximum file size in one of the filesystems is 2 gigabytes. I would like to know the reason of this boundary.
1) Does it have to do with the block size?
2) How do I find out the block size of a filesystem?
3) I read a technical publication that if you have a block size of 512 bytes, and block addresses of 4 bytes, then you can have in a file:
10 direct blocks
128 indirect blocks (512 divided by 4)
16384 double indirect blocks (128**2)
20971521 triple indirect blocks (128**3)
TOTAL=2113674 blocks = 2113674 * 512 = 1 GB
Then if you had block sizes of 1KB and four bytes addresses, 256 blocks addressable in one block, you would have 16 millions of blocks or 16GB, but because of the limit of address size, the effective space addressable and the maximum file size is 4 GB.
Is that correct? What is the block addressing scheme of AIX
Release 3 version 4?
Thanks in advance
I work with an AIX Release 3, version 4.
I found that in practice, the maximum file size in one of the filesystems is 2 gigabytes. I would like to know the reason of this boundary.
1) Does it have to do with the block size?
2) How do I find out the block size of a filesystem?
3) I read a technical publication that if you have a block size of 512 bytes, and block addresses of 4 bytes, then you can have in a file:
10 direct blocks
128 indirect blocks (512 divided by 4)
16384 double indirect blocks (128**2)
20971521 triple indirect blocks (128**3)
TOTAL=2113674 blocks = 2113674 * 512 = 1 GB
Then if you had block sizes of 1KB and four bytes addresses, 256 blocks addressable in one block, you would have 16 millions of blocks or 16GB, but because of the limit of address size, the effective space addressable and the maximum file size is 4 GB.
Is that correct? What is the block addressing scheme of AIX
Release 3 version 4?
Thanks in advance