>Could the files be still held open by an antivirus programme?

The only folder that should/could scanned by an online filesystem scanner 
is base/virusscan if the option (FileScan) is used and the scandir is set 
to this folder.
Scanning any files inside the ASSP directory (except above) is very wrong 
and will cause in an unexpected behavior of ASSP !!!!

OK - let's look in to the code - orderedtie : sub flush():

close I                                or &main::mlog(0,"error: orderedtie 
is unable to close I - $!"); 
close O                              or &main::mlog(0,"error: orderedtie 
is unable to close O - $!"); 
unlink($f)                            or &main::mlog(0,"error: orderedtie 
is unable to delete $f - $!"); 
rename("$f.tmp", $f)      or &main::mlog(0,"error: orderedtie is unable to 
rename $f.tmp to $f - $!"); 
$this->{updated}={}; 

If any file is opened by any application, the filter driver of the 
scanengine will see this - and keeps it in 'mind'.
It does not matter, if the file is realy changed (depending on the 
scanengine).
If the file is closed - the filter driver locks the file (for any 
operation) until the scanengine has finished scanning that file.  The 
realy good scanengines blocking the close-action
until the virusscan has finished - but this is not done by all 
filescanners.

The code sequence   close I -> close O  will be done in microseconds and 
if the file is still locked by the filter driver, the unlink operation 
will fail in the next microseconds.

The standard process/thread cycle time in Windows is one millisecond (1000 
microseconds). This is the time, that a process can run without being 
interrupted by the kernel
except if the process is doing any IO (open,close,read write). What I want 
to explain is, this code sequence must fail in most cases, if an online 
filescanner is scanning the file in the ASSP directory!

You may say, ASSP should solve this problem. Yes, we can do this by 
looping the unlink (or delaying for some time) and the rename until 
success. But this could cause in unwanted wait time or stuck ASSP, if the 
file permission is realy bad (ASSP will never be able to delete the file). 
Except the ASSP directory from the file scanner is much more easy.

Thomas




"Peter Ingham" <peter.ing...@a-one.co.uk> 
29.04.2009 06:45
Bitte antworten an
ASSP development mailing list <assp-test@lists.sourceforge.net>


An
"ASSP development mailing list" <assp-test@lists.sourceforge.net>
Kopie

Thema
Re: [Assp-test] Antwort: Re:  About the penaltybox cleanup






Apr-29-09 04:29:55 MXACache: cleaning cache finished; IP's before=81, 
deleted=15
Apr-29-09 04:29:55 Error: orderedtie is unable to delete 
c:/assp/pb/pbdb.mxa.db - Permission
                   denied
Apr-29-09 04:29:55 Error: orderedtie is unable to rename 
c:/assp/pb/pbdb.mxa.db.tmp to c:/assp/pb/pbdb.mxa.
                   db - Permission deniedApr-29-09 04:30:01 PenaltyBox: 
cleaning BlackBox finished; IP's before=117, deleted=20
Apr-29-09 04:30:01 PenaltyBox: cleaning WhiteBox finished; IP's 
before=361, 
deleted=1
Apr-29-09 04:30:01 PBTrap: cleaning finished; before=0, deleted=0I am 
running 15.1.2(1.1.09), which did all the checks on file and folder 
permissions (no problems, but would not want to run that every time - 
takes 
a long time to start), the black and white box are now working, but the 
other caches are still not deleting the tmp files.

Could the files be still held open by an antivirus programme?

Peter Ingham


> >Is it possible the file is still open when these two actions are taking
>>place?
>
> It looks so, but the files are closed just before that actions taking
> place!
>
> Thomas
>
>
>
>
> Paul Houlbrooke <duk...@shooflyblues.com>
> 28.04.2009 20:33
> Bitte antworten an
> ASSP development mailing list <assp-test@lists.sourceforge.net>
>
>
> An
> ASSP development mailing list <assp-test@lists.sourceforge.net>
> Kopie
>
> Thema
> Re: [Assp-test] About the penaltybox cleanup
>
>
>
>
>
>
> Paul Houlbrooke wrote:
>> Fritz Borgstedt wrote:
>>> ASSP development mailing list <assp-test@lists.sourceforge.net>
>>> schreibt:
>>>> Make sure you are checking the box under advanced the propogates all
>>>> the
>>>> permissions down.  If that doens't work, run a file system check,
>>>> remove all
>>>> permissions, apply, then put them back on.
>>> May be a simple approach is to delete the folder and create a new one
>>> with all permissions.
>>>
>>
>> Deleted folder and let ASSP recreate. Still get the same error. Gave
>> "Everyone" full control again, still get the same error.
>>
>
>
> Is it possible the file is still open when these two actions are taking
> place?
>
>
> 
------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Assp-test mailing list
> Assp-test@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-test
>
>
>
>
> DISCLAIMER:
> *******************************************************
> This email and any files transmitted with it may be confidential, 
legally
> privileged and protected in law and are intended solely for the use of 
the
>
> individual to whom it is addressed.
> This email was multiple times scanned for viruses. There should be no
> known virus in this email!
> *******************************************************
>
> 
------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Assp-test mailing list
> Assp-test@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-test
> 




Disclaimer: The information in this e-mail is confidential and may be 
legally privileged. Its contents including any file attachments are 
intended for the above named addressee(s) only. If you are not (or suspect 
that you are not) the correct recipient please contact us immediately on 
01423 322706, ask for the sender and then delete the e-mail from your 
computer system and destroy any hard copies you have made.  You must not 
otherwise use, forward it or copy it or act upon its contents. Please note 
that we cannot guarantee that this message or any attachment is virus free 
nor that it has not been intercepted or amended. Internet communications 
are not secure and therefore A-One Feed Supplements Ltd does not accept 
legal responsibility for the contents of this message and / or 
attachments. 
Any views or opinions presented are solely those of the author and do not 
necessarily represent those of A-One Feed Supplements Ltd unless otherwise 
specifically stated.

A-One Feed Supplements Ltd. 
Registered Office: North Hill, Dishforth Airfield,THIRSK, North Yorkshire. 
 YO7 3DH

Registered in England No. 120 7930   VAT No. GB 171 8557 42


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to