|
Packit Service |
1d0348 |
.TH ARCHIVE_WRITE_OPTIONS 3 "February 2, 2012" ""
|
|
Packit Service |
1d0348 |
.SH NAME
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_filter_option\fP,
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_format_option\fP,
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_option\fP,
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_options\fP
|
|
Packit Service |
1d0348 |
\- functions controlling options for writing archives
|
|
Packit Service |
1d0348 |
.SH LIBRARY
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
Streaming Archive Library (libarchive, -larchive)
|
|
Packit Service |
1d0348 |
.SH SYNOPSIS
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fIint\fP
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_filter_option\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *module\fP, \fI\%const\ char\ *option\fP, \fI\%const\ char\ *value\fP);
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fIint\fP
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_format_option\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *module\fP, \fI\%const\ char\ *option\fP, \fI\%const\ char\ *value\fP);
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fIint\fP
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_option\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *module\fP, \fI\%const\ char\ *option\fP, \fI\%const\ char\ *value\fP);
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fIint\fP
|
|
Packit Service |
1d0348 |
.br
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_options\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *options\fP);
|
|
Packit Service |
1d0348 |
.SH DESCRIPTION
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
These functions provide a way for libarchive clients to configure
|
|
Packit Service |
1d0348 |
specific write modules.
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_filter_option\fP(),
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_format_option\fP()
|
|
Packit Service |
1d0348 |
Specifies an option that will be passed to currently-registered
|
|
Packit Service |
1d0348 |
filters (including decompression filters) or format readers.
|
|
Packit Service |
1d0348 |
.PP
|
|
Packit Service |
1d0348 |
If
|
|
Packit Service |
1d0348 |
\fIoption\fP
|
|
Packit Service |
1d0348 |
and
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
are both
|
|
Packit Service |
1d0348 |
.BR NULL,
|
|
Packit Service |
1d0348 |
these functions will do nothing and
|
|
Packit Service |
1d0348 |
\fBARCHIVE_OK\fP
|
|
Packit Service |
1d0348 |
will be returned.
|
|
Packit Service |
1d0348 |
If
|
|
Packit Service |
1d0348 |
\fIoption\fP
|
|
Packit Service |
1d0348 |
is
|
|
Packit Service |
1d0348 |
.BR NULL
|
|
Packit Service |
1d0348 |
but
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
is not, these functions will do nothing and
|
|
Packit Service |
1d0348 |
\fBARCHIVE_FAILED\fP
|
|
Packit Service |
1d0348 |
will be returned.
|
|
Packit Service |
1d0348 |
.PP
|
|
Packit Service |
1d0348 |
If
|
|
Packit Service |
1d0348 |
\fImodule\fP
|
|
Packit Service |
1d0348 |
is not
|
|
Packit Service |
1d0348 |
.BR NULL,
|
|
Packit Service |
1d0348 |
\fIoption\fP
|
|
Packit Service |
1d0348 |
and
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
will be provided to the filter or reader named
|
|
Packit Service |
1d0348 |
\fImodule\fP.
|
|
Packit Service |
1d0348 |
The return value will be either
|
|
Packit Service |
1d0348 |
\fBARCHIVE_OK\fP
|
|
Packit Service |
1d0348 |
if the option was successfully handled or
|
|
Packit Service |
1d0348 |
\fBARCHIVE_WARN\fP
|
|
Packit Service |
1d0348 |
if the option was unrecognized by the module or could otherwise
|
|
Packit Service |
1d0348 |
not be handled.
|
|
Packit Service |
1d0348 |
If there is no such module,
|
|
Packit Service |
1d0348 |
\fBARCHIVE_FAILED\fP
|
|
Packit Service |
1d0348 |
will be returned.
|
|
Packit Service |
1d0348 |
.PP
|
|
Packit Service |
1d0348 |
If
|
|
Packit Service |
1d0348 |
\fImodule\fP
|
|
Packit Service |
1d0348 |
is
|
|
Packit Service |
1d0348 |
.BR NULL,
|
|
Packit Service |
1d0348 |
\fIoption\fP
|
|
Packit Service |
1d0348 |
and
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
will be provided to every registered module.
|
|
Packit Service |
1d0348 |
If any module returns
|
|
Packit Service |
1d0348 |
\fBARCHIVE_FATAL\fP,
|
|
Packit Service |
1d0348 |
this value will be returned immediately.
|
|
Packit Service |
1d0348 |
Otherwise,
|
|
Packit Service |
1d0348 |
\fBARCHIVE_OK\fP
|
|
Packit Service |
1d0348 |
will be returned if any module accepts the option, and
|
|
Packit Service |
1d0348 |
\fBARCHIVE_FAILED\fP
|
|
Packit Service |
1d0348 |
in all other cases.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_option\fP()
|
|
Packit Service |
1d0348 |
Calls
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_format_option\fP(),
|
|
Packit Service |
1d0348 |
then
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_filter_option\fP().
|
|
Packit Service |
1d0348 |
If either function returns
|
|
Packit Service |
1d0348 |
\fBARCHIVE_FATAL\fP,
|
|
Packit Service |
1d0348 |
\fBARCHIVE_FATAL\fP
|
|
Packit Service |
1d0348 |
will be returned
|
|
Packit Service |
1d0348 |
immediately.
|
|
Packit Service |
1d0348 |
Otherwise, greater of the two values will be returned.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fB\%archive_write_set_options\fP()
|
|
Packit Service |
1d0348 |
\fIoptions\fP
|
|
Packit Service |
1d0348 |
is a comma-separated list of options.
|
|
Packit Service |
1d0348 |
If
|
|
Packit Service |
1d0348 |
\fIoptions\fP
|
|
Packit Service |
1d0348 |
is
|
|
Packit Service |
1d0348 |
.BR NULL
|
|
Packit Service |
1d0348 |
or empty,
|
|
Packit Service |
1d0348 |
\fBARCHIVE_OK\fP
|
|
Packit Service |
1d0348 |
will be returned immediately.
|
|
Packit Service |
1d0348 |
.PP
|
|
Packit Service |
1d0348 |
Individual options have one of the following forms:
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fIoption=value\fP
|
|
Packit Service |
1d0348 |
The option/value pair will be provided to every module.
|
|
Packit Service |
1d0348 |
Modules that do not accept an option with this name will ignore it.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fIoption\fP
|
|
Packit Service |
1d0348 |
The option will be provided to every module with a value of
|
|
Packit Service |
1d0348 |
``1''.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fI!option\fP
|
|
Packit Service |
1d0348 |
The option will be provided to every module with a NULL value.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fImodule:option=value\fP, \fImodule:option\fP, \fImodule:!option\fP
|
|
Packit Service |
1d0348 |
As above, but the corresponding option and value will be provided
|
|
Packit Service |
1d0348 |
only to modules whose name matches
|
|
Packit Service |
1d0348 |
\fImodule\fP.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.SH OPTIONS
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Filter gzip
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBcompression-level\fP
|
|
Packit Service |
1d0348 |
The value is interpreted as a decimal integer specifying the
|
|
Packit Service |
1d0348 |
gzip compression level.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Filter xz
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBcompression-level\fP
|
|
Packit Service |
1d0348 |
The value is interpreted as a decimal integer specifying the
|
|
Packit Service |
1d0348 |
compression level.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Format mtree
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBcksum\fP, \fBdevice\fP, \fBflags\fP, \fBgid\fP, \fBgname\fP, \fBindent\fP, \fBlink\fP, \fBmd5\fP, \fBmode\fP, \fBnlink\fP, \fBrmd160\fP, \fBsha1\fP, \fBsha256\fP, \fBsha384\fP, \fBsha512\fP, \fBsize\fP, \fBtime\fP, \fBuid\fP, \fBuname\fP
|
|
Packit Service |
1d0348 |
Enable a particular keyword in the mtree output.
|
|
Packit Service |
1d0348 |
Prefix with an exclamation mark to disable the corresponding keyword.
|
|
Packit Service |
1d0348 |
The default is equivalent to
|
|
Packit Service |
1d0348 |
``device, flags, gid, gname, link, mode, nlink, size, time, type, uid, uname''.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBall\fP
|
|
Packit Service |
1d0348 |
Enables all of the above keywords.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBuse-set\fP
|
|
Packit Service |
1d0348 |
Enables generation of
|
|
Packit Service |
1d0348 |
\fB/set\fP
|
|
Packit Service |
1d0348 |
lines that specify default values for the following files and/or directories.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBindent\fP
|
|
Packit Service |
1d0348 |
XXX needs explanation XXX
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Format iso9660 - volume metadata
|
|
Packit Service |
1d0348 |
These options are used to set standard ISO9660 metadata.
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBabstract-file\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
The file with the specified name will be identified in the ISO9660 metadata
|
|
Packit Service |
1d0348 |
as holding the abstract for this volume. Default: none.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBapplication-id\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
The file with the specified name will be identified in the ISO9660 metadata
|
|
Packit Service |
1d0348 |
as holding the application identifier for this volume. Default: none.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBbiblio-file\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
The file with the specified name will be identified in the ISO9660 metadata
|
|
Packit Service |
1d0348 |
as holding the bibliography for this volume. Default: none.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBcopyright-file\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
The file with the specified name will be identified in the ISO9660 metadata
|
|
Packit Service |
1d0348 |
as holding the copyright for this volume. Default: none.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBpublisher\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
The file with the specified name will be identified in the ISO9660 metadata
|
|
Packit Service |
1d0348 |
as holding the publisher information for this volume. Default: none.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBvolume-id\fP=\fIstring\fP
|
|
Packit Service |
1d0348 |
The specified string will be used as the Volume Identifier in the ISO9660 metadata.
|
|
Packit Service |
1d0348 |
It is limited to 32 bytes. Default: none.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Format iso9660 - boot support
|
|
Packit Service |
1d0348 |
These options are used to make an ISO9660 image that can be directly
|
|
Packit Service |
1d0348 |
booted on various systems.
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBboot\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
The file matching this name will be used as the El Torito boot image file.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBboot-catalog\fP=\fIname\fP
|
|
Packit Service |
1d0348 |
The name that will be used for the El Torito boot catalog.
|
|
Packit Service |
1d0348 |
Default:
|
|
Packit Service |
1d0348 |
\fIboot.catalog\fP
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBboot-info-table\fP
|
|
Packit Service |
1d0348 |
The boot image file provided by the
|
|
Packit Service |
1d0348 |
\fBboot\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
option will be edited with appropriate boot information in bytes 8 through 64.
|
|
Packit Service |
1d0348 |
Default: disabled
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBboot-load-seg\fP=\fIhexadecimal-number\fP
|
|
Packit Service |
1d0348 |
The load segment for a no-emulation boot image.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBboot-load-size\fP=\fIdecimal-number\fP
|
|
Packit Service |
1d0348 |
The number of "virtual" 512-byte sectors to be loaded from a no-emulation boot image.
|
|
Packit Service |
1d0348 |
Some very old BIOSes can only load very small images, setting this
|
|
Packit Service |
1d0348 |
value to 4 will often allow such BIOSes to load the first part of
|
|
Packit Service |
1d0348 |
the boot image (which will then need to be intelligent enough to
|
|
Packit Service |
1d0348 |
load the rest of itself).
|
|
Packit Service |
1d0348 |
This should not be needed unless you are trying to support systems with very old BIOSes.
|
|
Packit Service |
1d0348 |
This defaults to the full size of the image.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBboot-type\fP=\fIvalue\fP
|
|
Packit Service |
1d0348 |
Specifies the boot semantics used by the El Torito boot image:
|
|
Packit Service |
1d0348 |
If the
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
is
|
|
Packit Service |
1d0348 |
\fBfd\fP,
|
|
Packit Service |
1d0348 |
then the boot image is assumed to be a bootable floppy image.
|
|
Packit Service |
1d0348 |
If the
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
is
|
|
Packit Service |
1d0348 |
\fBhd\fP,
|
|
Packit Service |
1d0348 |
then the boot image is assumed to be a bootable hard disk image.
|
|
Packit Service |
1d0348 |
If the
|
|
Packit Service |
1d0348 |
\fIvalue\fP
|
|
Packit Service |
1d0348 |
is
|
|
Packit Service |
1d0348 |
\fBno-emulation\fP,
|
|
Packit Service |
1d0348 |
the boot image is used without floppy or hard disk emulation.
|
|
Packit Service |
1d0348 |
If the boot image is exactly 1.2MB, 1.44MB, or 2.88MB, then
|
|
Packit Service |
1d0348 |
the default is
|
|
Packit Service |
1d0348 |
\fBfd\fP,
|
|
Packit Service |
1d0348 |
otherwise the default is
|
|
Packit Service |
1d0348 |
\fBno-emulation.\fP
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Format iso9660 - filename and size extensions
|
|
Packit Service |
1d0348 |
Various extensions to the base ISO9660 format.
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-ldots\fP
|
|
Packit Service |
1d0348 |
If enabled, allows filenames to begin with a leading period.
|
|
Packit Service |
1d0348 |
If disabled, filenames that begin with a leading period will have
|
|
Packit Service |
1d0348 |
that period replaced by an underscore character in the standard ISO9660
|
|
Packit Service |
1d0348 |
namespace.
|
|
Packit Service |
1d0348 |
This does not impact names stored in the Rockridge or Joliet extension area.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-lowercase\fP
|
|
Packit Service |
1d0348 |
If enabled, allows filenames to contain lowercase characters.
|
|
Packit Service |
1d0348 |
If disabled, filenames will be forced to uppercase.
|
|
Packit Service |
1d0348 |
This does not impact names stored in the Rockridge or Joliet extension area.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-multidot\fP
|
|
Packit Service |
1d0348 |
If enabled, allows filenames to contain multiple period characters, in violation of the ISO9660 specification.
|
|
Packit Service |
1d0348 |
If disabled, additional periods will be converted to underscore characters.
|
|
Packit Service |
1d0348 |
This does not impact names stored in the Rockridge or Joliet extension area.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-period\fP
|
|
Packit Service |
1d0348 |
If enabled, allows filenames to contain trailing period characters, in violation of the ISO9660 specification.
|
|
Packit Service |
1d0348 |
If disabled,trailing periods will be converted to underscore characters.
|
|
Packit Service |
1d0348 |
This does not impact names stored in the Rockridge or Joliet extension area.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-pvd-lowercase\fP
|
|
Packit Service |
1d0348 |
If enabled, the Primary Volume Descriptor may contain lowercase ASCII characters, in violation of the ISO9660 specification.
|
|
Packit Service |
1d0348 |
If disabled, characters will be converted to uppercase ASCII.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-sharp-tilde\fP
|
|
Packit Service |
1d0348 |
If enabled, sharp and tilde characters will be permitted in filenames, in violation if the ISO9660 specification.
|
|
Packit Service |
1d0348 |
If disabled, such characters will be converted to underscore characters.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBallow-vernum\fP
|
|
Packit Service |
1d0348 |
If enabled, version numbers will be included with files.
|
|
Packit Service |
1d0348 |
If disabled, version numbers will be suppressed, in violation of the ISO9660 standard.
|
|
Packit Service |
1d0348 |
This does not impact names stored in the Rockridge or Joliet extension area.
|
|
Packit Service |
1d0348 |
Default: enabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBiso-level\fP
|
|
Packit Service |
1d0348 |
This enables support for file size and file name extensions in the
|
|
Packit Service |
1d0348 |
core ISO9660 area.
|
|
Packit Service |
1d0348 |
The name extensions specified here do not affect the names stored in the Rockridge or Joliet extension areas.
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBiso-level=1\fP
|
|
Packit Service |
1d0348 |
The most compliant form of ISO9660 image.
|
|
Packit Service |
1d0348 |
Filenames are limited to 8.3 uppercase format,
|
|
Packit Service |
1d0348 |
directory names are limited to 8 uppercase characters,
|
|
Packit Service |
1d0348 |
files are limited to 4 GiB,
|
|
Packit Service |
1d0348 |
the complete ISO9660 image cannot exceed 4 GiB.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBiso-level=2\fP
|
|
Packit Service |
1d0348 |
Filenames are limited to 30 uppercase characters with a 30-character extension,
|
|
Packit Service |
1d0348 |
directory names are limited to 30 characters,
|
|
Packit Service |
1d0348 |
files are limited to 4 GiB.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBiso-level=3\fP
|
|
Packit Service |
1d0348 |
As with
|
|
Packit Service |
1d0348 |
\fBiso-level=2\fP,
|
|
Packit Service |
1d0348 |
except that files may exceed 4 GiB.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBiso-level=4\fP
|
|
Packit Service |
1d0348 |
As with
|
|
Packit Service |
1d0348 |
\fBiso-level=3\fP,
|
|
Packit Service |
1d0348 |
except that filenames may be up to 193 characters
|
|
Packit Service |
1d0348 |
and may include arbitrary 8-bit characters.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBjoliet\fP
|
|
Packit Service |
1d0348 |
Microsoft's Joliet extensions store a completely separate set of directory information about each file.
|
|
Packit Service |
1d0348 |
In particular, this information includes Unicode filenames of up to 255 characters.
|
|
Packit Service |
1d0348 |
Default: enabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBlimit-depth\fP
|
|
Packit Service |
1d0348 |
If enabled, libarchive will use directory relocation records to ensure that
|
|
Packit Service |
1d0348 |
no pathname exceeds the ISO9660 limit of 8 directory levels.
|
|
Packit Service |
1d0348 |
If disabled, no relocation will occur.
|
|
Packit Service |
1d0348 |
Default: enabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBlimit-dirs\fP
|
|
Packit Service |
1d0348 |
If enabled, libarchive will cause an error if there are more than
|
|
Packit Service |
1d0348 |
65536 directories.
|
|
Packit Service |
1d0348 |
If disabled, there is no limit on the number of directories.
|
|
Packit Service |
1d0348 |
Default: enabled
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBpad\fP
|
|
Packit Service |
1d0348 |
If enabled, 300 kiB of zero bytes will be appended to the end of the archive.
|
|
Packit Service |
1d0348 |
Default: enabled
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBrelaxed-filenames\fP
|
|
Packit Service |
1d0348 |
If enabled, all 7-bit ASCII characters are permitted in filenames
|
|
Packit Service |
1d0348 |
(except lowercase characters unless
|
|
Packit Service |
1d0348 |
\fBallow-lowercase\fP
|
|
Packit Service |
1d0348 |
is also specified).
|
|
Packit Service |
1d0348 |
This violates ISO9660 standards.
|
|
Packit Service |
1d0348 |
This does not impact names stored in the Rockridge or Joliet extension area.
|
|
Packit Service |
1d0348 |
Default: disabled.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBrockridge\fP
|
|
Packit Service |
1d0348 |
The Rockridge extensions store an additional set of POSIX-style file
|
|
Packit Service |
1d0348 |
information with each file, including mtime, atime, ctime, permissions,
|
|
Packit Service |
1d0348 |
and long filenames with arbitrary 8-bit characters.
|
|
Packit Service |
1d0348 |
These extensions also support symbolic links and other POSIX file types.
|
|
Packit Service |
1d0348 |
Default: enabled.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Format iso9660 - zisofs support
|
|
Packit Service |
1d0348 |
The zisofs extensions permit each file to be independently compressed
|
|
Packit Service |
1d0348 |
using a gzip-compatible compression.
|
|
Packit Service |
1d0348 |
This can provide significant size savings, but requires the reading
|
|
Packit Service |
1d0348 |
system to have support for these extensions.
|
|
Packit Service |
1d0348 |
These extensions are disabled by default.
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBcompression-level\fP=number
|
|
Packit Service |
1d0348 |
The compression level used by the deflate compressor.
|
|
Packit Service |
1d0348 |
Ranges from 0 (least effort) to 9 (most effort).
|
|
Packit Service |
1d0348 |
Default: 6
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBzisofs\fP
|
|
Packit Service |
1d0348 |
Synonym for
|
|
Packit Service |
1d0348 |
\fBzisofs=direct\fP.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBzisofs=direct\fP
|
|
Packit Service |
1d0348 |
Compress each file in the archive.
|
|
Packit Service |
1d0348 |
Unlike
|
|
Packit Service |
1d0348 |
\fBzisofs=indirect\fP,
|
|
Packit Service |
1d0348 |
this is handled entirely within libarchive and does not require a
|
|
Packit Service |
1d0348 |
separate utility.
|
|
Packit Service |
1d0348 |
For best results, libarchive tests each file and will store
|
|
Packit Service |
1d0348 |
the file uncompressed if the compression does not actually save any space.
|
|
Packit Service |
1d0348 |
In particular, files under 2k will never be compressed.
|
|
Packit Service |
1d0348 |
Note that boot image files are never compressed.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBzisofs=indirect\fP
|
|
Packit Service |
1d0348 |
Recognizes files that have already been compressed with the
|
|
Packit Service |
1d0348 |
\fBmkzftree\fP
|
|
Packit Service |
1d0348 |
utility and sets up the necessary file metadata so that
|
|
Packit Service |
1d0348 |
readers will correctly identify these as zisofs-compressed files.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBzisofs-exclude\fP=\fIfilename\fP
|
|
Packit Service |
1d0348 |
Specifies a filename that should not be compressed when using
|
|
Packit Service |
1d0348 |
\fBzisofs=direct\fP.
|
|
Packit Service |
1d0348 |
This option can be provided multiple times to suppress compression
|
|
Packit Service |
1d0348 |
on many files.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
Format zip
|
|
Packit Service |
1d0348 |
.RS 5
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBcompression\fP
|
|
Packit Service |
1d0348 |
The value is either
|
|
Packit Service |
1d0348 |
``store''
|
|
Packit Service |
1d0348 |
or
|
|
Packit Service |
1d0348 |
``deflate''
|
|
Packit Service |
1d0348 |
to indicate how the following entries should be compressed.
|
|
Packit Service |
1d0348 |
Note that this setting is ignored for directories, symbolic links,
|
|
Packit Service |
1d0348 |
and other special entries.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBexperimental\fP
|
|
Packit Service |
1d0348 |
This boolean option enables or disables experimental Zip features
|
|
Packit Service |
1d0348 |
that may not be compatible with other Zip implementations.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBfakecrc32\fP
|
|
Packit Service |
1d0348 |
This boolean option disables CRC calculations.
|
|
Packit Service |
1d0348 |
All CRC fields are set to zero.
|
|
Packit Service |
1d0348 |
It should not be used except for testing purposes.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBhdrcharset\fP
|
|
Packit Service |
1d0348 |
This sets the character set used for filenames.
|
|
Packit Service |
1d0348 |
.TP
|
|
Packit Service |
1d0348 |
\fBzip64\fP
|
|
Packit Service |
1d0348 |
Zip64 extensions provide additional file size information
|
|
Packit Service |
1d0348 |
for entries larger than 4 GiB.
|
|
Packit Service |
1d0348 |
They also provide extended file offset and archive size information
|
|
Packit Service |
1d0348 |
when archives exceed 4 GiB.
|
|
Packit Service |
1d0348 |
By default, the Zip writer selectively enables these extensions only as needed.
|
|
Packit Service |
1d0348 |
In particular, if the file size is unknown, the Zip writer will
|
|
Packit Service |
1d0348 |
include Zip64 extensions to guard against the possibility that the
|
|
Packit Service |
1d0348 |
file might be larger than 4 GiB.
|
|
Packit Service |
1d0348 |
.PP
|
|
Packit Service |
1d0348 |
Setting this boolean option will force the writer to use Zip64 extensions
|
|
Packit Service |
1d0348 |
even for small files that would not otherwise require them.
|
|
Packit Service |
1d0348 |
This is primarily useful for testing.
|
|
Packit Service |
1d0348 |
.PP
|
|
Packit Service |
1d0348 |
Disabling this option with
|
|
Packit Service |
1d0348 |
\fB!zip64\fP
|
|
Packit Service |
1d0348 |
will force the Zip writer to avoid Zip64 extensions:
|
|
Packit Service |
1d0348 |
It will reject files with size greater than 4 GiB,
|
|
Packit Service |
1d0348 |
it will reject any new entries once the total archive size reaches 4 GiB,
|
|
Packit Service |
1d0348 |
and it will not use Zip64 extensions for files with unknown size.
|
|
Packit Service |
1d0348 |
In particular, this can improve compatibility when generating archives
|
|
Packit Service |
1d0348 |
where the entry sizes are not known in advance.
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.SH EXAMPLES
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
The following example creates an archive write handle to
|
|
Packit Service |
1d0348 |
create a gzip-compressed ISO9660 format image.
|
|
Packit Service |
1d0348 |
The two options here specify that the ISO9660 archive will use
|
|
Packit Service |
1d0348 |
\fIkernel.img\fP
|
|
Packit Service |
1d0348 |
as the boot image for El Torito booting, and that the gzip
|
|
Packit Service |
1d0348 |
compressor should use the maximum compression level.
|
|
Packit Service |
1d0348 |
.RS 4
|
|
Packit Service |
1d0348 |
.nf
|
|
Packit Service |
1d0348 |
a = archive_write_new();
|
|
Packit Service |
1d0348 |
archive_write_add_filter_gzip(a);
|
|
Packit Service |
1d0348 |
archive_write_set_format_iso9660(a);
|
|
Packit Service |
1d0348 |
archive_write_set_options(a, "boot=kernel.img,compression=9");
|
|
Packit Service |
1d0348 |
archive_write_open_filename(a, filename, blocksize);
|
|
Packit Service |
1d0348 |
.RE
|
|
Packit Service |
1d0348 |
.SH ERRORS
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
More detailed error codes and textual descriptions are available from the
|
|
Packit Service |
1d0348 |
\fB\%archive_errno\fP()
|
|
Packit Service |
1d0348 |
and
|
|
Packit Service |
1d0348 |
\fB\%archive_error_string\fP()
|
|
Packit Service |
1d0348 |
functions.
|
|
Packit Service |
1d0348 |
.SH SEE ALSO
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
\fBtar\fP(1),
|
|
Packit Service |
1d0348 |
\fBlibarchive\fP(3),
|
|
Packit Service |
1d0348 |
\fBarchive_read_set_options\fP(3),
|
|
Packit Service |
1d0348 |
\fBarchive_write\fP(3)
|
|
Packit Service |
1d0348 |
.SH HISTORY
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
The
|
|
Packit Service |
1d0348 |
\fB\%libarchive\fP
|
|
Packit Service |
1d0348 |
library first appeared in
|
|
Packit Service |
1d0348 |
FreeBSD 5.3.
|
|
Packit Service |
1d0348 |
.SH AUTHORS
|
|
Packit Service |
1d0348 |
.ad l
|
|
Packit Service |
1d0348 |
-nosplit
|
|
Packit Service |
1d0348 |
The options support for libarchive was originally implemented by
|
|
Packit Service |
1d0348 |
Michihiro NAKAJIMA.
|
|
Packit Service |
1d0348 |
.SH BUGS
|
|
Packit Service |
1d0348 |
.ad l
|