mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Tar archiving of huge data #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4ybaka on GitHub (Dec 1, 2017).
I want to use sharpcompress to create huge tar archives (TBs) without compression but I can't do it by next reasons:
Is there any chance that some of these issues will be resolved?
@turbolocust commented on GitHub (Dec 2, 2017):
You could capture the task and thus solve your first problem. See my solution here:
https://github.com/turbolocust/SimpleZIP/blob/master/SimpleZIP_UI/Application/Util/WriterUtils.cs
It can also be done without a child or nested task, but the immediate cancellation of the whole operation isn't as reliable then.
@adamhathcock commented on GitHub (Dec 2, 2017):
2). I’m not 100% sure what you’re asking for here
3)Not sure how this helps.
I don’t honestly see what’s blocking the creation of large tar files. Maybe a code sample will help.
@4ybaka commented on GitHub (Dec 2, 2017):
One of issues with archiving huge amount of data is resuming of process (due to instance reboot, IO failure, etc). At this moment I have next issues with sharpcompress:
If TarHeader class will be available outside of library then it is pretty easy to implemenet resume logic - if written data length more then header size - just skip header and some part of content. Otherwise serialize header and skip part of it's content.
@adamhathcock commented on GitHub (Dec 7, 2017):
Now using ArrayPool for Skip/Transfer: https://github.com/adamhathcock/sharpcompress/pull/326
This should help for 3
@adamhathcock commented on GitHub (Dec 7, 2017):
Fix for 1: https://github.com/adamhathcock/sharpcompress/pull/327
I felt like I did it for a reason though
@adamhathcock commented on GitHub (Dec 7, 2017):
I would like to make it async all the but that's a bigger PR.
@4ybaka commented on GitHub (Jan 11, 2018):
@adamhathcock do you have any thoughts regarding PR?
@4ybaka commented on GitHub (Jan 16, 2018):
@adamhathcock when do you plan to create a new release? I want to use a new version with new writer options.