Whamcloud - gitweb
e2image: only skip writing zero blocks when writing to a new file
authorTheodore Ts'o <tytso@mit.edu>
Wed, 25 Dec 2013 21:33:52 +0000 (16:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 26 Dec 2013 05:21:08 +0000 (00:21 -0500)
commitaa2c743331f392e49d5b168b5e3d8c8a8084b8b4
tree4371286a5036588097bffdce7b5d6961164af130
parentd28759b22388404561cea092855e4daca3781358
e2image: only skip writing zero blocks when writing to a new file

The e2image progam was originally intended to create image files.
However, some people have started using e2image to copy a file system
from one block device to another, since it is more efficient than
using dd because it only copies the blocks which are in use.  If we
are doing this, however, we must not skip writing blocks which are all
zero in the source device, since they may not be zero in the
destination device.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Phillip Susi <psusi@ubuntu.com>
lib/ext2fs/e2image.h
misc/e2image.c