LinuxQuestions.org

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

MTK358 07-12-2011 12: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 10: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 11:15 AM.