mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-04 02:06:22 -04:00
Add dwarfsextract man page and update documentation
This commit is contained in:
parent
000dc33aa8
commit
7c57721951
@ -271,7 +271,7 @@ if(WITH_TESTS)
|
||||
PRIVATE TEST_DATA_DIR=\"${CMAKE_SOURCE_DIR}/test\")
|
||||
endif()
|
||||
|
||||
foreach(man dwarfs mkdwarfs)
|
||||
foreach(man dwarfs mkdwarfs dwarfsextract)
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man/${man}.1
|
||||
COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/man
|
||||
|
@ -138,6 +138,7 @@ A good starting point for apt-based systems is probably:
|
||||
fuse3 \
|
||||
pkg-config \
|
||||
binutils-dev \
|
||||
libarchive-dev \
|
||||
libboost-context-dev \
|
||||
libboost-filesystem-dev \
|
||||
libboost-program-options-dev \
|
||||
|
@ -201,4 +201,4 @@ Copyright (C) Marcus Holland-Moritz.
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
mkdwarfs(1)
|
||||
mkdwarfs(1), dwarfsextract(1)
|
||||
|
78
doc/dwarfsextract.md
Normal file
78
doc/dwarfsextract.md
Normal file
@ -0,0 +1,78 @@
|
||||
dwarfsextract(1) -- extract DwarFS image
|
||||
========================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`dwarfsextract` -i *image* [-o *dir*] [*options*...]
|
||||
`dwarfsextract` -i *image* -f *format* [-o *file*] [*options*...]<br>
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
**dwarfsextract** allows you to extract a DwarFS image, either directly
|
||||
into another archive format file, or to a directory on disk.
|
||||
|
||||
To extract the filesystem image to a directory, you can use:
|
||||
|
||||
dwarfsextract -i image.dwarfs -o output-directory
|
||||
|
||||
The output directory must exist.
|
||||
|
||||
You can also rewrite the contents of the filesystem image as another
|
||||
archive type, for example, to write a tar archive, you can use:
|
||||
|
||||
dwarfsextract -i image.dwarfs -o output.tar -f ustar
|
||||
|
||||
For a list of supported formats, see libarchive-formats(5).
|
||||
|
||||
If you want to compress the output archive, you can use a pipeline:
|
||||
|
||||
dwarfsextract -i image.dwarfs -f ustar | gzip > output.tar.gz
|
||||
|
||||
You could also use this as an alternative way to extract the files
|
||||
to disk:
|
||||
|
||||
dwarfsextract -i image.dwarfs -f cpio | cpio -id
|
||||
|
||||
## OPTIONS
|
||||
|
||||
* `-i`, `--input=`*file*:
|
||||
Path to the source filesystem.
|
||||
|
||||
* `-o`, `--output=`*directory*`|`*file*:
|
||||
If no format is specified, this is the directory to which the contents
|
||||
of the filesystem should be extracted. If a format is specified, this
|
||||
is the name of the output archive. This option can be omitted, in which
|
||||
case the default is to extract the files to the current directory, or
|
||||
to write the archive data to stdout.
|
||||
|
||||
* `-n`, `--num-workers=`*value*:
|
||||
Number of worker threads used for building the filesystem. This defaults
|
||||
to the number of processors available on your system. Use this option if
|
||||
you want to limit the resources used by `mkdwarfs`.
|
||||
|
||||
* `-s`, `--cache-size=`*value*:
|
||||
Size of the block cache, in bytes. You can append suffixes (`k`, `m`, `g`)
|
||||
to specify the size in KiB, MiB and GiB, respectively. Note that this is
|
||||
not the upper memory limit of the process, as there may be blocks in
|
||||
flight that are not stored in the cache. Also, each block that hasn't been
|
||||
fully decompressed yet will carry decompressor state along with it, which
|
||||
can use a significant amount of additional memory.
|
||||
|
||||
* `--log-level=`*name*:
|
||||
Specifiy a logging level.
|
||||
|
||||
* `--help`:
|
||||
Show program help, including defaults, compression level detail and
|
||||
supported compression algorithms.
|
||||
|
||||
## AUTHOR
|
||||
|
||||
Written by Marcus Holland-Moritz.
|
||||
|
||||
## COPYRIGHT
|
||||
|
||||
Copyright (C) Marcus Holland-Moritz.
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
mkdwarfs(1), dwarfs(1), libarchive-formats(5)
|
@ -285,4 +285,4 @@ Copyright (C) Marcus Holland-Moritz.
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
dwarfs(1)
|
||||
dwarfs(1), dwarfsextract(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user