]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue #857: Clarify the padding/blocking behavior of the convenience functions
authorTim Kientzle <kientzle@acm.org>
Sun, 29 Jan 2017 05:15:37 +0000 (21:15 -0800)
committerTim Kientzle <kientzle@acm.org>
Sun, 29 Jan 2017 05:15:37 +0000 (21:15 -0800)
This is a more expansive documentation change than the one suggested
by @bigpet in PR#857.

libarchive/archive_write_open.3

index a52959b98fcbb027fff99577321658705be29894..457873e6148314b06257fbab301604748c5fd3bf 100644 (file)
@@ -66,6 +66,7 @@ Freeze the settings, open the archive, and prepare for writing entries.
 This is the most generic form of this function, which accepts
 pointers to three callback functions which will be invoked by
 the compression layer to write the constructed archive.
+This does not alter the default archive padding.
 .It Fn archive_write_open_fd
 A convenience form of
 .Fn archive_write_open
@@ -123,12 +124,21 @@ is currently in use.
 You should be careful to ensure that this variable
 remains allocated until after the archive is
 closed.
+This function will disable padding unless you
+have specifically set the block size.
 .El
 More information about the
 .Va struct archive
 object and the overall design of the library can be found in the
 .Xr libarchive 3
 overview.
+.Pp
+Note that the convenience forms above vary in how
+they block the output.
+See
+.Xr archive_write_blocksize 3
+if you need to control the block size used for writes
+or the end-of-file padding behavior.
 .\"
 .Sh CLIENT CALLBACKS
 To use this library, you will need to define and register
@@ -226,6 +236,7 @@ functions.
 .Xr tar 1 ,
 .Xr libarchive 3 ,
 .Xr archive_write 3 ,
+.Xr archive_write_blocksize 3 ,
 .Xr archive_write_filter 3 ,
 .Xr archive_write_format 3 ,
 .Xr archive_write_new 3 ,