Re: [squid-users] unlinkd

From: Guido Serassio <serassio@dont-contact.us>
Date: Mon, 01 Apr 2002 20:31:14 +0100

Hi,

Il 11.37 01/04/2002 Hermann Strassner ha scritto:
> > >>Is it possible, that squid NT 2.3 stable 5 has a problem with
>unlinking
> > >>(deleting) files?
> >
> > Yes, it's a Squid 2.3 problem:
> >
> > I have just checked that in Squid 2.3 when not using unlinkd, we use
> > nothing ...
> > And SquidNT 2.3 doesn't use unlinkd ...
> > Now I'm testing a patch, in the next days I will post a new build on
> > SquidNT web page.
>
>Hm. But sometimes some of the files get deleted ... just not all that
>need to.
>
>Hermann

This the old code in store_io_ufs.c:

void
storeUfsUnlink(sfileno f)
{
     debug(79, 3) ("storeUfsUnlink: fileno %08X\n", f);
     unlinkdUnlink(storeUfsFullPath(f, NULL));
}

The unlinkdUnlink function make nothing when squid is compiled without
USE_UNLINKD, as SquidNT is.

The new code, similar to Squid 2.5, is:

void
storeUfsUnlink(sfileno f)
{
     debug(79, 3) ("storeUfsUnlink: fileno %08X\n", f);
#if USE_UNLINKD
     unlinkdUnlink(storeUfsFullPath(f, NULL));
#else
     unlink(storeUfsFullPath(f, NULL));
#endif
}

Regards

Guido

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Mon Apr 01 2002 - 12:31:21 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:18 MST