I *think* this may be due to the number and length of filenames that can be stored in a directory block?
Netapps store filenames as unicode characters, so each character is 2 bytes. if the other box doesn't support unicode, then the directorys would be 1/2 the size. (Assuming filenames >12 chars -- I think the netapp limit is 127 12 unicode (24 byte) filenmes in a 4k dir block)
Am I way off base here? -Luke
On Wed, 3 Nov 1999, John K. Edwards wrote:
I don't have a handy pointer, and it's too early for me to think clearly enough to find one. Did they go from 2KB to 4KB?
That was my initial guess, but:
a) It would have been true with respect to all the files, not just directories, and the size of the file is as reported by "ls" is unrelated to the actual size of the file, i.e. sparse files will show much larger than they are in reality.
b) The size of the directory would be rounded up to 4k and not double. Besides ls does not round up to block boundaries, i.e. if you have a 3 byte file it will report 3 bytes.
This is what I am seeing:
Auspex:
dr-xr-xr-x 2 user group 59392 Oct 29 07:01 dir1
NetApp:
dr-xr-xr-x 2 user group 118784 Oct 29 09:49 dir1
How much space do directories actually occupy? How do I find that out? (Please do not suggest "du" unless you thought it through.)
Why do I see the apparent doubling in size?
Does the difference in apparent size affect the quota? (With sparse files the "ls size" doesn't matter.)
Tom