LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   libarchive block size (http://www.linuxquestions.org/questions/programming-9/libarchive-block-size-891330/)

MTK358 07-12-2011 01:53 PM

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?

ta0kira 07-13-2011 11:22 PM

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


All times are GMT -5. The time now is 03:09 PM.