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

MURALI N (murali.n@tatainfotech.com)
Wed, 23 Jun 1999 22:31:04 +0530 (IST)


:
:I can also report that on my 4k block systems, I never see directories
:smaller than 4k in size, but that's (A) expected, and (B) desired.
:
:I can understand the viewpoint that says the "size" of a directory is
:simply a count of the number of valid entries therein, but I don't
:agree with it.

and why not? it seems meaningless to see a directory size reported as
1024 while the actual size may be far below. only the filesystem
algorithms can make sense out of it. why, then it would make sense to see
all regular files with sizes multiples of blocksize. can you please
explain why you desire it that way.

-
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/