Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary file failure on fixed disk with 160GB free #2

Open
GoogleCodeExporter opened this issue Mar 18, 2015 · 0 comments
Open

Temporary file failure on fixed disk with 160GB free #2

GoogleCodeExporter opened this issue Mar 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a zip file with 12 files (say 32 KB each)
2. Extract all files and modify one.
3. Use the 'Add' method to update just the one file.

What is the expected output? What do you see instead?
Fails with 'Temporary file failure' even though huge amount of disk space left. 
Same error occurs whether KAV virus scanning is disabled or enabled.

What version of the product are you using? On what operating system?
v1.90. Problem experienced under Win 7 x64 (32 bit process) with 160GB free on 
temp drive. Not experienced under Windows XP (x32) with 4.1Gb free on temp 
drive.

Please provide any additional information below.

I expect that the problem relates to the free space on the drive being so large 
that the temporary file allocation code gets upset.

Sample code fragment:
  with zip do
  begin
    Verbose := False;
    Trace := false;
    Unattended := true;

    ExtrOptions := [ExtrOverWrite,ExtrDirNames,ExtrForceDirs];
    ExtrBaseDir := userFolder + 'tempzip';
    rootDir := ExtrBaseDir;

    SpanOptions := [];
    KeepFreeOnDisk1 := 0;
    KeepFreeOnAllDisks := 0;
    AddCompLevel := 9;
    AddOptions := AddOptions + [AddRecurseDirs,AddDirNames,AddMove,{AddFreshen, }AddHiddenFiles{,AddUpdate}]; {delete from disk after moved into archive}
    AddStoreSuffixes := [assGIF, assPNG, assZ, assZIP, assZOO, assARC, assLZH, assARJ, assTAZ, assTGZ, assLHA, assRAR, assACE, assCAB, assGZ, assGZIP, assJAR];
  end;


then later, when we update one file 
      zip.FSpecArgs.add( filename );

      zip.Add;
      if (zip.errMessage <> '') then
        logError( currentFilename + ':' + zip.errMessage, zip.zipfilename );

The add triggers the error.

Original issue reported on code.google.com by datamys...@gmail.com on 7 Jun 2013 at 12:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant