Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
libarchive block size

Here ( 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
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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:50 AM.

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