Hi,
Looking to bug #1371 (http://www.squid-cache.org/bugs/show_bug.cgi?id=1371)
I have found the following code:
void
DiskThreadsIOStrategy::unlinkFile(char const *path)
{
statCounter.syscalls.disk.unlinks++;
#if USE_TRUNCATE_NOT_UNLINK
aioTruncate(path, NULL, NULL);
#else
aioUnlink(path, NULL, NULL);
#endif
}
And in configure I'm reading:
--enable-truncate This uses truncate() instead of unlink() when
removing cache files. Truncate gives a little
performance improvement, but may cause problems
when used with async I/O. Truncate uses more
filesystem inodes than unlink..
So I have a doubt:
#if USE_TRUNCATE_NOT_UNLINK
Is an error or a trick to avoid usage of truncate() with aufs ?
Regards
Guido
-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Mon Aug 08 2005 - 11:09:13 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Aug 31 2005 - 12:00:06 MDT