TC doesn't use SetEndOfFile when extracting using plugins

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
kapela86
Junior Member
Junior Member
Posts: 27
Joined: 2013-08-12, 21:28 UTC
Location: Poland

TC doesn't use SetEndOfFile when extracting using plugins

Post by *kapela86 »

I didn't test if this applies to every wcx plugin, but when extracting iso using http://www.totalcmd.net/plugring/iso64.html SetEndOfFile isn't used so this leads to fragmented files. Extracting from zip/rar/7z is ok. I checked with Process Monitor to be sure. Using TC 8.51a x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6975
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

This is no TC bug, so report it to the plugin author.

Use the Total7zip plugin instead.
kapela86
Junior Member
Junior Member
Posts: 27
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Post by *kapela86 »

Same thing with Total7zip. I think it's bug in TC, or Total7zip also doesn't use SetEndOfFile
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC doesn't deal with archives on file level, plugins do this.

But I don't understand where do you want to call SetEndOfFile? Before packing? What if archive size is unknown at that time?
kapela86
Junior Member
Junior Member
Posts: 27
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Post by *kapela86 »

MVV wrote:I don't understand where do you want to call SetEndOfFile?
When unpacking file. It's completely useless when packing file because we don't know final size :)
Here's something I found that could shed some light on this http://sourceforge.net/p/sevenzip/feature-requests/981/
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Anyway, TC only passes destination path to packer plugin and plugin creates and writes file, so reserving space for files is up to plugin.

BTW if you're using Total7zip plugin, you can use it for ISO files too, and it uses 7-Zip libraries so should reserve space correctly.
kapela86
Junior Member
Junior Member
Posts: 27
Joined: 2013-08-12, 21:28 UTC
Location: Poland

Post by *kapela86 »

I wrote earlier that Total7zip doesn't use SetEndOfFile. 7-Zip also doesn't use it :P Tested them with Process Monitor so I'm sure. You can see it yourself, just create filter to include "Operation is SetEndOfFileInformationFile" and start unpacking.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

According to your link there was a request to add ths feature to 7-Zip, so it will be available via Total7zip - that's what I mean. However it is a quite old request... so 7-Zip programmers didn't realize it too.
Post Reply