1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530
|
<!-- Creator : groff version 1.19.2 -->
<!-- CreationDate: Tue Mar 27 21:04:08 2012 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; }
pre { margin-top: 0; margin-bottom: 0; }
table { margin-top: 0; margin-bottom: 0; }
</style>
<title></title>
</head>
<body>
<hr>
<p valign="top">ARCHIVE_WRITE_OPTIONS(3) BSD Library
Functions Manual ARCHIVE_WRITE_OPTIONS(3)</p>
<p style="margin-top: 1em" valign="top"><b>NAME</b></p>
<p style="margin-left:8%;"><b>archive_write_set_filter_option</b>,
<b>archive_write_set_format_option</b>,
<b>archive_write_set_option</b>,
<b>archive_write_set_options</b> — functions
controlling options for reading archives</p>
<p style="margin-top: 1em" valign="top"><b>LIBRARY</b></p>
<p style="margin-left:8%;">Streaming Archive Library
(libarchive, -larchive)</p>
<p style="margin-top: 1em" valign="top"><b>SYNOPSIS</b></p>
<p style="margin-left:8%;"><i>int</i></p>
<p valign="top"><b>archive_write_set_filter_option</b>(<i>struct archive *</i>,
<i>const char *module</i>,
<i>const char *option</i>,
<i>const char *value</i>);</p>
<p style="margin-left:8%; margin-top: 1em"><i>int</i></p>
<p valign="top"><b>archive_write_set_format_option</b>(<i>struct archive *</i>,
<i>const char *module</i>,
<i>const char *option</i>,
<i>const char *value</i>);</p>
<p style="margin-left:8%; margin-top: 1em"><i>int</i></p>
<p valign="top"><b>archive_write_set_option</b>(<i>struct archive *</i>,
<i>const char *module</i>,
<i>const char *option</i>,
<i>const char *value</i>);</p>
<p style="margin-left:8%; margin-top: 1em"><i>int</i></p>
<p valign="top"><b>archive_write_set_options</b>(<i>struct archive *</i>,
<i>const char *options</i>);</p>
<p style="margin-top: 1em" valign="top"><b>DESCRIPTION</b></p>
<p style="margin-left:8%;">These functions provide a way
for libarchive clients to configure specific write
modules.</p>
<p style="margin-top: 1em" valign="top"><b>archive_write_set_filter_option</b>(),
<b>archive_write_set_format_option</b>()</p>
<p style="margin-left:20%;">Specifies an option that will
be passed to currently-registered filters (including
decompression filters) or format readers.</p>
<p style="margin-left:20%; margin-top: 1em">If
<i>option</i> and <i>value</i> are both NULL, these
functions will do nothing and <b>ARCHIVE_OK</b> will be
returned. If <i>option</i> is NULL but <i>value</i> is not,
these functions will do nothing and <b>ARCHIVE_FAILED</b>
will be returned.</p>
<p style="margin-left:20%; margin-top: 1em">If
<i>module</i> is not NULL, <i>option</i> and <i>value</i>
will be provided to the filter or reader named
<i>module</i>. The return value will be that of the module.
If there is no such module, <b>ARCHIVE_FAILED</b> will be
returned.</p>
<p style="margin-left:20%; margin-top: 1em">If
<i>module</i> is NULL, <i>option</i> and <i>value</i> will
be provided to every registered module. If any module
returns <b>ARCHIVE_FATAL</b>, this value will be returned
immediately. Otherwise, <b>ARCHIVE_OK</b> will be returned
if any module accepts the option, and <b>ARCHIVE_FAILED</b>
in all other cases.</p>
<p style="margin-top: 1em" valign="top"><b>archive_write_set_option</b>()</p>
<p style="margin-left:20%;">Calls
<b>archive_write_set_format_option</b>(), then
<b>archive_write_set_filter_option</b>(). If either function
returns <b>ARCHIVE_FATAL</b>, <b>ARCHIVE_FATAL</b> will be
returned immediately. Otherwise, greater of the two values
will be returned.</p>
<p style="margin-top: 1em" valign="top"><b>archive_write_set_options</b>()</p>
<p style="margin-left:20%;"><i>options</i> is a
comma-separated list of options. If <i>options</i> is NULL
or empty, <b>ARCHIVE_OK</b> will be returned
immediately.</p>
<p style="margin-left:20%; margin-top: 1em">Individual
options have one of the following forms:</p>
<p valign="top"><i>option=value</i></p>
<p style="margin-left:32%;">The option/value pair will be
provided to every module. Modules that do not accept an
option with this name will ignore it.</p>
<p valign="top"><i>option</i></p>
<p style="margin-left:32%; margin-top: 1em">The option will
be provided to every module with a value of
‘‘1’’.</p>
<p valign="top"><i>!option</i></p>
<p style="margin-left:32%;">The option will be provided to
every module with a NULL value.</p>
<p valign="top"><i>module:option=value</i>,
<i>module:option</i>, <i>module:!option</i></p>
<p style="margin-left:32%;">As above, but the corresponding
option and value will be provided only to modules whose name
matches <i>module</i>.</p>
<p style="margin-top: 1em" valign="top"><b>OPTIONS</b> <br>
Filter gzip <b><br>
compression-level</b></p>
<p style="margin-left:32%;">The value is interpreted as a
decimal integer specifying the gzip compression level.</p>
<p valign="top">Filter xz <b><br>
compression-level</b></p>
<p style="margin-left:32%;">The value is interpreted as a
decimal integer specifying the compression level.</p>
<p valign="top">Format mtree <b><br>
cksum</b>, <b>device</b>, <b>flags</b>, <b>gid</b>,
<b>gname</b>, <b>indent</b>, <b>link</b>, <b>md5</b>,
<b>mode</b>, <b>nlink</b>, <b>rmd160</b>, <b>sha1</b>,
<b>sha256</b>, <b>sha384</b>, <b>sha512</b>, <b>size</b>,
<b>time</b>, <b>uid</b>, <b>uname</b></p>
<p style="margin-left:32%;">Enable a particular keyword in
the mtree output. Prefix with an exclamation mark to disable
the corresponding keyword. The default is equivalent to
‘‘device, flags, gid, gname, link, mode, nlink,
size, time, type, uid, uname’’.</p>
<p valign="top"><b>all</b></p>
<p style="margin-left:32%; margin-top: 1em">Enables all of
the above keywords.</p>
<p valign="top"><b>use-set</b></p>
<p style="margin-left:32%;">Enables generation of
<b>/set</b> lines that specify default values for the
following files and/or directories.</p>
<p valign="top"><b>indent</b></p>
<p style="margin-left:32%; margin-top: 1em">XXX needs
explanation XXX</p>
<p valign="top">Format iso9660 - volume metadata</p>
<p style="margin-left:20%;">These options are used to set
standard ISO9660 metadata.</p>
<p valign="top"><b>abstract-file</b>=<i>filename</i></p>
<p style="margin-left:32%;">The file with the specified
name will be identified in the ISO9660 metadata as holding
the abstract for this volume. Default: none.</p>
<p valign="top"><b>application-id</b>=<i>filename</i></p>
<p style="margin-left:32%;">The file with the specified
name will be identified in the ISO9660 metadata as holding
the application identifier for this volume. Default:
none.</p>
<p valign="top"><b>biblio-file</b>=<i>filename</i></p>
<p style="margin-left:32%;">The file with the specified
name will be identified in the ISO9660 metadata as holding
the bibliography for this volume. Default: none.</p>
<p valign="top"><b>copyright-file</b>=<i>filename</i></p>
<p style="margin-left:32%;">The file with the specified
name will be identified in the ISO9660 metadata as holding
the copyright for this volume. Default: none.</p>
<p valign="top"><b>publisher</b>=<i>filename</i></p>
<p style="margin-left:32%;">The file with the specified
name will be identified in the ISO9660 metadata as holding
the publisher information for this volume. Default:
none.</p>
<p valign="top"><b>volume-id</b>=<i>string</i></p>
<p style="margin-left:32%;">The specified string will be
used as the Volume Identifier in the ISO9660 metadata. It is
limited to 32 bytes. Default: none.</p>
<p valign="top">Format iso9660 - boot support</p>
<p style="margin-left:20%;">These options are used to make
an ISO9660 image that can be directly booted on various
systems.</p>
<p valign="top"><b>boot</b>=<i>filename</i></p>
<p style="margin-left:32%;">The file matching this name
will be used as the El Torito boot image file.</p>
<p valign="top"><b>boot-catalog</b>=<i>name</i></p>
<p style="margin-left:32%;">The name that will be used for
the El Torito boot catalog. Default: <i>boot.catalog</i></p>
<p valign="top"><b>boot-info-table</b></p>
<p style="margin-left:32%;">The boot image file provided by
the <b>boot</b>=<i>filename</i> option will be edited with
appropriate boot information in bytes 8 through 64. Default:
disabled</p>
<p valign="top"><b>boot-load-seg</b>=<i>hexadecimal-number</i></p>
<p style="margin-left:32%;">The load segment for a
no-emulation boot image.</p>
<p valign="top"><b>boot-load-size</b>=<i>decimal-number</i></p>
<p style="margin-left:32%;">The number of
"virtual" 512-byte sectors to be loaded from a
no-emulation boot image. Some very old BIOSes can only load
very small images, setting this value to 4 will often allow
such BIOSes to load the first part of the boot image (which
will then need to be intelligent enough to load the rest of
itself). This should not be needed unless you are trying to
support systems with very old BIOSes. This defaults to the
full size of the image.</p>
<p valign="top"><b>boot-type</b>=<i>value</i></p>
<p style="margin-left:32%;">Specifies the boot semantics
used by the El Torito boot image: If the <i>value</i> is
<b>fd</b>, then the boot image is assumed to be a bootable
floppy image. If the <i>value</i> is <b>hd</b>, then the the
boot image is assumed to be a bootable hard disk image. If
the <i>value</i> is <b>no-emulation</b>, the boot image is
used without floppy or hard disk emulation. If the boot
image is exactly 1.2MB, 1.44MB, or 2.88MB, then the default
is <b>fd</b>, otherwise the default is
<b>no-emulation.</b></p>
<p valign="top">Format iso9660 - filename and size
extensions</p>
<p style="margin-left:20%;">Various extensions to the base
ISO9660 format.</p>
<p valign="top"><b>allow-ldots</b></p>
<p style="margin-left:32%;">If enabled, allows filenames to
begin with a leading period. If disabled, filenames that
begin with a leading period will have that period replaced
by an underscore character in the standard ISO9660
namespace. This does not impact names stored in the
Rockridge or Joliet extension area. Default: disabled.</p>
<p valign="top"><b>allow-lowercase</b></p>
<p style="margin-left:32%;">If enabled, allows filenames to
contain lowercase characters. If disabled, filenames will be
forced to uppercase. This does not impact names stored in
the Rockridge or Joliet extension area. Default:
disabled.</p>
<p valign="top"><b>allow-multidot</b></p>
<p style="margin-left:32%;">If enabled, allows filenames to
contain multiple period characters, in violation of the
ISO9660 specification. If disabled, additional periods will
be converted to underscore characters. This does not impact
names stored in the Rockridge or Joliet extension area.
Default: disabled.</p>
<p valign="top"><b>allow-period</b></p>
<p style="margin-left:32%;">If enabled, allows filenames to
contain trailing period characters, in violation of the
ISO9660 specification. If disabled,trailing periods will be
converted to underscore characters. This does not impact
names stored in the Rockridge or Joliet extension area.
Default: disabled.</p>
<p valign="top"><b>allow-pvd-lowercase</b></p>
<p style="margin-left:32%;">If enabled, the Primary Volume
Descriptor may contain lowercase ASCII characters, in
violation of the ISO9660 specification. If disabled,
characters will be converted to uppercase ASCII. Default:
disabled.</p>
<p valign="top"><b>allow-sharp-tilde</b></p>
<p style="margin-left:32%;">If enabled, sharp and tilde
characters will be permitted in filenames, in violation if
the ISO9660 specification. If disabled, such characters will
be converted to underscore characters. Default:
disabled.</p>
<p valign="top"><b>allow-vernum</b></p>
<p style="margin-left:32%;">If enabled, version numbers
will be included with files. If disabled, version numbers
will be suppressed, in violation of the ISO9660 standard.
This does not impact names stored in the Rockridge or Joliet
extension area. Default: enabled.</p>
<p valign="top"><b>iso-level</b></p>
<p style="margin-left:32%;">This enables support for file
size and file name extensions in the core ISO9660 area. The
name extensions specified here do not affect the names
stored in the Rockridge or Joliet extension areas.</p>
<p valign="top"><b>iso-level=1</b></p>
<p style="margin-left:45%;">The most compliant form of
ISO9660 image. Filenames are limited to 8.3 uppercase
format, directory names are limited to 8 uppercase
characters, files are limited to 4 GiB, the complete ISO9660
image cannot exceed 4 GiB.</p>
<p valign="top"><b>iso-level=2</b></p>
<p style="margin-left:45%;">Filenames are limited to 30
uppercase characters with a 30-character extension,
directory names are limited to 30 characters, files are
limited to 4 GiB.</p>
<p valign="top"><b>iso-level=3</b></p>
<p style="margin-left:45%;">As with <b>iso-level=2</b>,
except that files may exceed 4 GiB.</p>
<p valign="top"><b>iso-level=4</b></p>
<p style="margin-left:45%;">As with <b>iso-level=3</b>,
except that filenames may be up to 193 characters and may
include arbitrary 8-bit characters.</p>
<p valign="top"><b>joliet</b></p>
<p style="margin-left:32%; margin-top: 1em">Microsoft’s
Joliet extensions store a completely separate set of
directory information about each file. In particular, this
information includes Unicode filenames of up to 255
characters. Default: enabled.</p>
<p valign="top"><b>limit-depth</b></p>
<p style="margin-left:32%;">If enabled, libarchive will use
directory relocation records to ensure that no pathname
exceeds the ISO9660 limit of 8 directory levels. If
disabled, no relocation will occur. Default: enabled.</p>
<p valign="top"><b>limit-dirs</b></p>
<p style="margin-left:32%;">If enabled, libarchive will
cause an error if there are more than 65536 directories. If
disabled, there is no limit on the number of directories.
Default: enabled</p>
<p valign="top"><b>pad</b></p>
<p style="margin-left:32%; margin-top: 1em">If enabled, 300
kiB of zero bytes will be appended to the end of the
archive. Default: enabled</p>
<p valign="top"><b>relaxed-filenames</b></p>
<p style="margin-left:32%;">If enabled, all 7-bit ASCII
characters are permitted in filenames (except lowercase
characters unless <b>allow-lowercase</b> is also specified).
This violates ISO9660 standards. This does not impact names
stored in the Rockridge or Joliet extension area. Default:
disabled.</p>
<p valign="top"><b>rockridge</b></p>
<p style="margin-left:32%;">The Rockridge extensions store
an additional set of POSIX-style file information with each
file, including mtime, atime, ctime, permissions, and long
filenames with arbitrary 8-bit characters. These extensions
also support symbolic links and other POSIX file types.
Default: enabled.</p>
<p valign="top">Format iso9660 - zisofs support</p>
<p style="margin-left:20%;">The zisofs extensions permit
each file to be independently compressed using a
gzip-compatible compression. This can provide significant
size savings, but requires the reading system to have
support for these extensions. These extensions are disabled
by default.</p>
<p valign="top"><b>compression-level</b>=number</p>
<p style="margin-left:32%;">The compression level used by
the deflate compressor. Ranges from 0 (least effort) to 9
(most effort). Default: 6</p>
<p valign="top"><b>zisofs</b></p>
<p style="margin-left:32%; margin-top: 1em">Synonym for
<b>zisofs=direct</b>.</p>
<p valign="top"><b>zisofs=direct</b></p>
<p style="margin-left:32%;">Compress each file in the
archive. Unlike <b>zisofs=indirect</b>, this is handled
entirely within libarchive and does not require a separate
utility. For best results, libarchive tests each file and
will store the file uncompressed if the compression does not
actually save any space. In particular, files under 2k will
never be compressed. Note that boot image files are never
compressed.</p>
<p valign="top"><b>zisofs=indirect</b></p>
<p style="margin-left:32%;">Recognizes files that have
already been compressed with the <b>mkzftree</b> utility and
sets up the necessary file metadata so that readers will
correctly identify these as zisofs-compressed files.</p>
<p valign="top"><b>zisofs-exclude</b>=<i>filename</i></p>
<p style="margin-left:32%;">Specifies a filename that
should not be compressed when using <b>zisofs=direct</b>.
This option can be provided multiple times to suppress
compression on many files.</p>
<p style="margin-top: 1em" valign="top"><b>EXAMPLES</b></p>
<p style="margin-left:8%;">The following example creates an
archive write handle to create a gzip-compressed ISO9660
format image. The two options here specify that the ISO9660
archive will use <i>kernel.img</i> as the boot image for El
Torito booting, and that the gzip compressor should use the
maximum compression level.</p>
<p style="margin-left:17%; margin-top: 1em">a =
archive_write_new(); <br>
archive_write_add_filter_gzip(a); <br>
archive_write_set_format_iso9660(a); <br>
archive_write_set_options(a,
"boot=kernel.img,compression=9"); <br>
archive_write_open_filename(a, filename, blocksize);</p>
<p style="margin-top: 1em" valign="top"><b>ERRORS</b></p>
<p style="margin-left:8%;">Detailed error codes and textual
descriptions are available from the <b>archive_errno</b>()
and <b>archive_error_string</b>() functions.</p>
<p style="margin-top: 1em" valign="top"><b>SEE ALSO</b></p>
<p style="margin-left:8%;">tar(1), libarchive(3),
archive_read_set_options(3), archive_write(3)</p>
<p style="margin-top: 1em" valign="top"><b>HISTORY</b></p>
<p style="margin-left:8%;">The <b>libarchive</b> library
first appeared in FreeBSD 5.3.</p>
<p style="margin-top: 1em" valign="top"><b>AUTHORS</b></p>
<p style="margin-left:8%;">The options support for
libarchive was originally implemented by Michihiro
NAKAJIMA.</p>
<p style="margin-top: 1em" valign="top"><b>BUGS</b></p>
<p style="margin-left:8%;">BSD February 2, 2012
BSD</p>
<hr>
</body>
</html>
|