LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2019, 05:25 AM   #1
RohitB
LQ Newbie
 
Registered: Jan 2019
Posts: 20

Rep: Reputation: Disabled
Creating tar in buffer through libarchive and streaming it .


Hi,

I want to create tar stream in buffer one by one and stream it as soon as some bytes are available to send.Whether libarchive support this.
For example I cannot create full tar file in disk or ram.
I need to open a tar stream due to this.
I have buffer of size 1024 bytes and I have 4 file of 2048 bytes.
I want to create a tar stream but at a time my buffer can hold only 1024 bytes so i will read that much byte and flush it again next.
Can any body help on this?
 
Old 01-11-2019, 06:14 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by RohitB View Post
Hi,

I want to create tar stream in buffer one by one and stream it as soon as some bytes are available to send.Whether libarchive support this.
For example I cannot create full tar file in disk or ram.
I need to open a tar stream due to this.
I have buffer of size 1024 bytes and I have 4 file of 2048 bytes.
I want to create a tar stream but at a time my buffer can hold only 1024 bytes so i will read that much byte and flush it again next.
Can any body help on this?
Welcome to LQ,

Have you written any code here? Please review the link in my signature which discusses how to use the Linux Questions site and provide some updates as to your efforts here. Note that you haven't identified the destination for this stream.
 
Old 04-07-2021, 05:47 PM   #3
serIdol
LQ Newbie
 
Registered: Apr 2021
Posts: 1

Rep: Reputation: Disabled
Same problem here!

Any ideas on (if and) how libarchive handles that kind of streaming would be most appreciated! The destination of such a stream would be a memory buffer that could then be flushed practically anywhere (e.g. for testing purposes, on a file in the filesystem).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pkg request libarchive-3.1.2.tar.gz gmgf Slackware 5 10-15-2013 02:11 AM
for buffer streaming which is better solution for apps to access memory buffer? dennisdd Programming 3 02-13-2012 11:07 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-25-2006 11:57 PM
How do I un tar a .tar, .tar.z, .tar.gz file vofkid Linux - Newbie 4 03-15-2002 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration