Why is the size of partitions 64M in Minix filesystem?

80 Views Asked by At

I have read Introduction to the Minix File System from Wikipedia. I don't understand this sentence, "but since the Minix fs uses unsigned shorts for block pointers, it is limited to 64M partitions". What's the relationship between the data structure of block pointers and the size of partitions?

1

There are 1 best solutions below

0
AntoineL On

MINIX 1 and 2 (and the Linux minixfs which derives from it) use fixed-size 1,024-byte blocks. If each block is given a 16-bit (unsigned short in C) number, the farthest byte of the farthest block will be at offset 64 MiB-1.

Those two limits were lifted in 2005 with MINIX 3, but the vast majority of existing file systems comply with the older format, which is more than enough for the floppies it was designed for.