from small one page howto to huge articles all in one place
 

search text in:





Poll
Which linux distribution do you use?







poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

85784

userrating:

average rating: 1.7 (82 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

202203

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

84204

userrating:

average rating: 1.3 (27 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





ARCHIVE_WRITE_BLOCKSIZE

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

archive_write_get_bytes_per_block archive_write_set_bytes_per_block archive_write_get_bytes_in_last_block archive_write_set_bytes_in_last_block - functions for creating archives  

LIBRARY

Streaming Archive Library (libarchive, -larchive)  

SYNOPSIS

In archive.h Ft int Fn archive_write_get_bytes_per_block struct archive * Ft int Fn archive_write_set_bytes_per_block struct archive * int bytes_per_block Ft int Fn archive_write_get_bytes_in_last_block struct archive * Ft int Fn archive_write_set_bytes_in_last_block struct archive * int  

DESCRIPTION

Fn archive_write_set_bytes_per_block
Sets the block size used for writing the archive data. Every call to the write callback function, except possibly the last one, will use this value for the length. The default is to use a block size of 10240 bytes. Note that a block size of zero will suppress internal blocking and cause writes to be sent directly to the write callback as they occur.
Fn archive_write_get_bytes_per_block
Retrieve the block size to be used for writing. A value of -1 here indicates that the library should use default values. A value of zero indicates that internal blocking is suppressed.
Fn archive_write_set_bytes_in_last_block
Sets the block size used for writing the last block. If this value is zero, the last block will be padded to the same size as the other blocks. Otherwise, the final block will be padded to a multiple of this size. In particular, setting it to 1 will cause the final block to not be padded. For compressed output, any padding generated by this option is applied only after the compression. The uncompressed data is always unpadded. The default is to pad the last block to the full block size (note that Fn archive_write_open_filename will set this based on the file type). Unlike the other ``set'' functions, this function can be called after the archive is opened.
Fn archive_write_get_bytes_in_last_block
Retrieve the currently-set value for last block size. A value of -1 here indicates that the library should use default values.

 

RETURN VALUES

Fn archive_write_set_bytes_per_block and Fn archive_write_set_bytes_in_last_block return ARCHIVE_OK on success, or ARCHIVE_FATAL

Fn archive_write_get_bytes_per_block and Fn archive_write_get_bytes_in_last_block return currently configured block size Po -1 indicates the default block size Pc , or ARCHIVE_FATAL  

ERRORS

Detailed error codes and textual descriptions are available from the Fn archive_errno and Fn archive_error_string functions.  

SEE ALSO

tar(1), libarchive(3), archive_write_set_options3, cpio(5), mtree(5), tar(5)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
SEE ALSO


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2013 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 3.2 ms