Sun Jul 8 22:48:32 2012 UTC ()
Improve wording, fix typo, bump date.
From Bug Hunting.


(wiz)
diff -r1.6 -r1.7 src/usr.bin/vndcompress/vndcompress.1

cvs diff -r1.6 -r1.7 src/usr.bin/vndcompress/vndcompress.1 (expand / switch to unified diff)

--- src/usr.bin/vndcompress/vndcompress.1 2007/03/24 23:16:11 1.6
+++ src/usr.bin/vndcompress/vndcompress.1 2012/07/08 22:48:32 1.7
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: vndcompress.1,v 1.6 2007/03/24 23:16:11 dillo Exp $ 1.\" $NetBSD: vndcompress.1,v 1.7 2012/07/08 22:48:32 wiz Exp $
2.\" 2.\"
3.\" Copyright (c) 2005 Florian Stoehr <netbsd@wolfnode.de> 3.\" Copyright (c) 2005 Florian Stoehr <netbsd@wolfnode.de>
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software 14.\" 3. All advertising materials mentioning features or use of this software
@@ -20,54 +20,54 @@ @@ -20,54 +20,54 @@
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" 32.\"
33.Dd December 12, 2005 33.Dd July 8, 2012
34.Dt VNDCOMPRESS 1 34.Dt VNDCOMPRESS 1
35.Os 35.Os
36.Sh NAME 36.Sh NAME
37.Nm vndcompress , 37.Nm vndcompress ,
38.Nm vnduncompress 38.Nm vnduncompress
39.Nd compress/uncompress file system images to/from cloop2 format 39.Nd compress/uncompress file system images to/from cloop2 format
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.Nm 41.Nm
42.Op Fl cd 42.Op Fl cd
43.Ar disk/fs-image 43.Ar disk/fs-image
44.Ar compressed-image 44.Ar compressed-image
45.Op Ar blocksize 45.Op Ar blocksize
46.Nm vnduncompress 46.Nm vnduncompress
47.Op Fl cd 47.Op Fl cd
48.Ar compressed-image 48.Ar compressed-image
49.Ar disk/fs-image 49.Ar disk/fs-image
50.Sh DESCRIPTION 50.Sh DESCRIPTION
51The 51The
52.Nm 52.Nm
53program compresses an existing file system image 53program compresses an existing file system image
54into a cloop2 compatible compressed file system image. 54into a cloop2 compatible compressed file system image.
55An optional blocksize can be given. 55An optional blocksize can be given.
56If omitted, the default of 64kB is used. 56If omitted, the default of 64kB is used.
57.Pp 57.Pp
58The 58The
59.Nm vnduncompress 59.Nm vnduncompress
60command decompress a cloop2-compressed file system image back into a 60command decompress a cloop2 compressed file system image back into a
61regular image. 61regular image.
62.Pp 62.Pp
63The 63The
64file system images that can be handled are not limited to any specific 64file system images that can be handled are not limited to any specific
65file system, i.e. it is possible to handle images e.g. in ISO 9660 or 65file system, i.e. it is possible to handle images e.g. in ISO 9660 or
66UFS/FFS format. 66UFS/FFS format.
67File system images in the cloop2 format are intended to be used with the 67File system images in the cloop2 format are intended to be used with the
68.Xr vnd 4 68.Xr vnd 4
69driver in compressed mode as configured by the 69driver in compressed mode as configured by the
70.Fl z 70.Fl z
71option of the 71option of the
72.Xr vnconfig 8 72.Xr vnconfig 8
73program, and later mounted with the appropriate 73program, and later mounted with the appropriate
@@ -131,27 +131,27 @@ file that can then be mounted: @@ -131,27 +131,27 @@ file that can then be mounted:
131\&.rr_moved cdrom floppy lib opt sbin usr 131\&.rr_moved cdrom floppy lib opt sbin usr
132bin dev home mnt proc sys var 132bin dev home mnt proc sys var
133boot etc initrd none root tmp vmlinuz 133boot etc initrd none root tmp vmlinuz
134# umount /mnt 134# umount /mnt
135# vnconfig -u vnd1 135# vnconfig -u vnd1
136.Ed 136.Ed
137.Pp 137.Pp
138As an alternative, if your 138As an alternative, if your
139.Xr vnd 4 139.Xr vnd 4
140was compiled with 140was compiled with
141.Dv VND_COMPRESSION , 141.Dv VND_COMPRESSION ,
142you can use 142you can use
143.Xr vnconfig 8 143.Xr vnconfig 8
144to access the cloop-compressed image directly, e.g., 144to access the cloop2 compressed image directly, e.g.,
145.Bd -literal -offset indent 145.Bd -literal -offset indent
146# vnconfig vnd0 KNOPPIX.iso 146# vnconfig vnd0 KNOPPIX.iso
147# mount -t cd9660 -o ro /dev/vnd0d /mnt 147# mount -t cd9660 -o ro /dev/vnd0d /mnt
148# vnconfig -z vnd1 /mnt/KNOPPIX/KNOPPIX 148# vnconfig -z vnd1 /mnt/KNOPPIX/KNOPPIX
149# mount -t cd9660 -o ro /dev/vnd1d /mnt2 149# mount -t cd9660 -o ro /dev/vnd1d /mnt2
150# ls /mnt2 150# ls /mnt2
151\&.rr_moved cdrom floppy lib opt sbin usr 151\&.rr_moved cdrom floppy lib opt sbin usr
152bin dev home mnt proc sys var 152bin dev home mnt proc sys var
153boot etc initrd none root tmp vmlinuz 153boot etc initrd none root tmp vmlinuz
154# df /mnt /mnt2 154# df /mnt /mnt2
155Filesystem Size Used Avail Capacity Mounted on 155Filesystem Size Used Avail Capacity Mounted on
156/dev/vnd0a 692M 692M 0B 100% /mnt 156/dev/vnd0a 692M 692M 0B 100% /mnt
157/dev/vnd1a 1.9G 1.9G 0B 100% /mnt2 157/dev/vnd1a 1.9G 1.9G 0B 100% /mnt2