In the COSS fs the patch already applied for ufs is missing. For details see:
http://www1.it.squid-cache.org/mail-archive/squid-dev/200308/0028.html http://www.squid-cache.org/Versions/v3/3.0/bugs/squid-3.0.PRE2-win-filerename.patch
Attached there are all the needed changes.
Regards
Guido
- ======================================================== Guido Serassio Acme Consulting S.r.l. Via Gorizia, 69 10136 - Torino - ITALY Tel. : +39.011.3249426 Fax. : +39.011.3293665 Email: [EMAIL PROTECTED] WWW: http://www.acmeconsulting.it/
Index: src/fs/coss/store_dir_coss.cc
===================================================================
RCS file: /cvsroot/squid/squid3/src/fs/coss/store_dir_coss.cc,v
retrieving revision 1.12
diff -u -p -r1.12 store_dir_coss.cc
--- src/fs/coss/store_dir_coss.cc 28 Aug 2003 02:13:00 -0000 1.12
+++ src/fs/coss/store_dir_coss.cc 30 Aug 2003 21:13:51 -0000
@@ -431,14 +431,6 @@ storeCossDirCloseTmpSwapLog(CossSwapDir
char *new_path = xstrdup(storeCossDirSwapLogFile(sd, ".new"));
int anfd;
file_close(sd->swaplog_fd);
-#if defined (_SQUID_OS2_) || defined (_SQUID_CYGWIN_)
-
- if (unlink(swaplog_path) < 0) {
- debug(50, 0) ("%s: %s\n", swaplog_path, xstrerror());
- fatal("storeCossDirCloseTmpSwapLog: unlink failed");
- }
-
-#endif
if (xrename(new_path, swaplog_path) < 0) {
fatal("storeCossDirCloseTmpSwapLog: rename failed");
}
@@ -674,13 +666,9 @@ CossSwapDir::writeCleanDone()
/* rename */
if (state->fd >= 0) {
-#if defined(_SQUID_OS2_) || defined (_SQUID_CYGWIN_)
+#if defined(_SQUID_OS2_) || defined(_SQUID_WIN32_)
file_close(state->fd);
state->fd = -1;
-
- if (unlink(state->cur) < 0)
- debug(50, 0) ("storeCossDirWriteCleanLogs: unlinkd failed: %s, %s\n",
- xstrerror(), state->cur);
#endif
