LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-12-2011, 12:53 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
libarchive block size


Here (http://www.gsp.com/cgi-bin/man.cgi?s...c=archive_read) it says that you need to provide a block size to open an archive. What does that mean, and what would be a good number to use?
 
Old 07-13-2011, 10:22 PM   #2
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Unless the format of the archive has a default block size (e.g. tar has 512 bytes per block) you might as well start with sysconf(_SC_PAGESIZE). It looks like a block size isn't actually required, though. That's probably just for serial devices that read only in increments of blocks, like a tape drive.
Kevin Barry
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
AIX Block Size shipon_97 Linux - Newbie 1 08-11-2008 10:45 AM
how to determine block size when using dd kav Linux - Software 2 12-22-2007 07:16 PM
Block size of partition salmanucit Red Hat 4 04-10-2007 05:17 AM
size of block devices primo Solaris / OpenSolaris 1 12-20-2005 12:17 PM
block size ust Linux - Software 1 11-24-2005 11:45 PM


All times are GMT -5. The time now is 11:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration