Re: why is the size of a directory always 1024b ?

Riley Williams (rhw@MemAlpha.CX)
Sat, 26 Jun 1999 16:24:22 +0100 (GMT)


Hi Ted.

>>> Actually, it isn't - it is deliberately 12 BLOCKS. True, this
>>> is 12k on a 1k block filesystem, but it is 48k on a 4k block
>>> filesystem. I'm not sure whether this was intentional or a bug
>>> in the mklost+found code.

>> It was deliberately chosen to be 12 blocks, but arguably 48k is
>> more space than is really necessary. Probably not a disaster in
>> the grand scheme of things, but I will think about changing this
>> in future revisions of mke2fs.

> Probably a more sensible rule would be to say 16k or 1 block,
> whichever is smaller. Note that on 8k file systems, 12k is not
> an integral number of blocks, but 16k is, hence the change.

I did of course mean "whichever is LARGER" (8-Z)

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/