linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add better example about how to compress e2image raw image
@ 2011-09-23 18:47 Carlos Maiolino
  2011-09-23 20:24 ` Andreas Dilger
  0 siblings, 1 reply; 11+ messages in thread
From: Carlos Maiolino @ 2011-09-23 18:47 UTC (permalink / raw)
  To: linux-ext4; +Cc: Carlos Maiolino

The current example in the man page uses bzip2 to compress
the raw image file created by the e2image, but, bzip2 does
not honors sparse files, which causes the image to have the
same size of the filesystem.
Using tar together with bzip2 will make the compressed file
to honor the sparsed file, which makes it more transportable
than the current one if the filesystem is large.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
---
 misc/e2image.8.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/e2image.8.in b/misc/e2image.8.in
index 74d2a0b..fcf3d20 100644
--- a/misc/e2image.8.in
+++ b/misc/e2image.8.in
@@ -115,7 +115,7 @@ as part of bug reports to e2fsprogs.  When used in this capacity, the
 recommended command is as follows (replace hda1 with the appropriate device):
 .PP
 .br
-\	\fBe2image \-r /dev/hda1 \- | bzip2 > hda1.e2i.bz2\fR
+\	\fBe2image \-r /dev/hda1 hda1.e2i && tar Sjcvf e2i.tar.bz2 hda1.e2i\fR
 .PP
 This will only send the metadata information, without any data blocks.  
 However, the filenames in the directory blocks can still reveal
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-09-26 20:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 18:47 [PATCH] Add better example about how to compress e2image raw image Carlos Maiolino
2011-09-23 20:24 ` Andreas Dilger
2011-09-23 20:51   ` Carlos Maiolino
2011-09-24 16:31     ` Ted Ts'o
2011-09-26 12:13       ` Carlos Maiolino
2011-09-26 12:22       ` Bernd Schubert
2011-09-26 16:25         ` Eric Sandeen
2011-09-26 16:24       ` Eric Sandeen
2011-09-26 19:23         ` Ted Ts'o
2011-09-26 19:36           ` Carlos Maiolino
2011-09-26 20:01           ` Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).