--On Friday, April 15, 2005 18:42:14 -0400 chas williams - CONTRACTOR <[EMAIL PROTECTED]> wrote:

In message <[EMAIL PROTECTED]>,Chaskiel M
Grundman  writes:
It should not be necessary to call ext2_truncate to free the
preallocated  blocks - ext2_release_file will do it.

but you seem to get these preallocated blocks if you just open a file for writing. so if your disk cache consists lots of tiny files you wind up with oversubscribing the cache partition.

I don't see that. I'm looking at 2.6.11.5, and the only way for preallocation to happen is for someone to call ext2_get_block. neither ext2_read_inode or generic_file_open (which ext2 uses) result in any of the aops being called.

afs does not hold cache files open. Most calls to afs_CFileTruncate are immediately followed by afs_CFileClose (which is osi_UFSClose, which calls release_file).



Attachment: p7sbsPYeMzWKN.p7s
Description: S/MIME cryptographic signature

Reply via email to