Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
799e9035
Commit
799e9035
authored
Oct 23, 2003
by
Mike Hibler
Browse files
document -W option to imageunzip
change awkward "uncompress" to "decompress"
parent
4c777ee8
Changes
3
Hide whitespace changes
Inline
Side-by-side
os/imagezip/imagedump.8
View file @
799e9035
...
...
@@ -22,7 +22,7 @@ created image files.
With no options,
.Nm
prints a summary for each image file specified. This summary includes:
the size of the image file, the size of the resulting
un
compressed data,
the size of the image file, the size of the resulting
de
compressed data,
the compression factor achieved on allocated data (due to
.Xr zlib Ns
),
...
...
os/imagezip/imageunzip.8
View file @
799e9035
...
...
@@ -15,6 +15,7 @@
.Op Fl D Ar DOS-ptype
.Op Fl p Ar pattern
.Op Fl s Ar slice
.Op Fl W Ar size
.Ar image
.Op outfile
.Sh DESCRIPTION
...
...
@@ -65,7 +66,7 @@ man page for more details on disk images and their creation.
.Pp
To further optimize the image restoration process,
writing of the image to the output file is done is a separate thread
from reading and
un
compressing. This allows overlap of
un
compression and IO.
from reading and
de
compressing. This allows overlap of
de
compression and IO.
The
.Fl n
option can be used to disable this feature.
...
...
@@ -106,13 +107,13 @@ an image to a slice.
Turn on debugging output. Can be specified multiple times to increase
the level of debugging output.
.It Fl n
Run
un
compression and disk writing in a single thread.
Run
de
compression and disk writing in a single thread.
This option can be used for benchmarking or if a race condition is suspected.
You will probably never need this option.
.It Fl o
Indicate the progress of image restore by printing a dot ('.') to
.Dv stderr
after every 1MB of compressed data that is
un
compressed and written to
after every 1MB of compressed data that is
de
compressed and written to
the output file.
At the end of each line of dots, elapsed time in seconds and
the amount of expanded data written is also printed.
...
...
@@ -138,6 +139,14 @@ must be seekable and have a DOS MBR with a partition table in its first sector.
Print the version number of
.Nm
and exit.
.It Fl W Ar size
Limits the amount of memory used for write buffering.
When running multi-threaded (i.e., without
.Fl n )
the decompression thread queues decompressed data for the writer thread.
This option limits the amount of queued write data to
.Ar size
Megabytes.
.It Fl z
Tells
.Nm
...
...
@@ -148,9 +157,9 @@ to free blocks in the image rather than seeking over them.
.Sh DIAGNOSTICS
The
.Nm
utility will exit with a status of zero if it successfully
un
compresses the
utility will exit with a status of zero if it successfully
de
compresses the
entire image and writes it to the output. It will exit non-zero if it
runs out of memory or gets an error while reading or
un
compressing the
runs out of memory or gets an error while reading or
de
compressing the
image or writing the output file.
.Sh IMPLEMENTATION NOTES
Because
...
...
@@ -191,7 +200,7 @@ FreeBSD (165) in the DOS partition table.
.Pp
.Dl imageunzip -z image.ndz | wc
.Pp
A slow way to find out how big an image would be when
un
compressed
A slow way to find out how big an image would be when
de
compressed
(use
.Xr imagedump
instead).
...
...
os/imagezip/imagezip.8
View file @
799e9035
...
...
@@ -28,7 +28,7 @@ The result is written to
.Ar outfile
or
.Dv stdout .
This image can later be
un
compressed and installed using the companion
This image can later be
de
compressed and installed using the companion
.Xr imageunzip 8
utility.
.Nm
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment