[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110228182604.GC28617@thunk.org>
Date: Mon, 28 Feb 2011 13:26:04 -0500
From: Ted Ts'o <tytso@....edu>
To: Robin Dong <hao.bigrat@...il.com>
Cc: linux-ext4@...r.kernel.org, Robin Dong <sanbai@...bao.com>
Subject: Re: [PATCH 1/2] mksparse: build sparse file from compressed
e2image file.
On Mon, Feb 28, 2011 at 10:35:13AM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai@...bao.com>
>
> [Purpose]
> After we make a image-file by e2image like:
> #e2image -r /dev/hda1 - | bzip2 > hda1.bz2
> we copy the bz2 file to remote host and extract it:
> #bunzip2 hda1.bz2
> the unzipped hda1 file will not be a sparse file and the space occupied
> by it is as large as the real /dev/hda1 filesystem.
>
> Therefore a tool to transform a raw-file to a sparse-file is necessary.
> This Patch is a first attempt to provide such a tool which is called
> 'mksparse' so far.
I guess you didn't find /usr/src/e2fsprogs/contrib/make-sparse.c file
that I had written a while back. I never did write a man page or
usage manual, or the rest of the niceties that go into a supported
program, but it's there. :-)
I've never been completely convinced this was functionality was one
that should be included in the e2fsprogs as a supported program and
shipped with distributions. It is useful, though, and I've certainly
used make-sparse.c many times in the past, so I'm willing to be
convinced otherwise.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists