diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2013-12-25 16:33:52 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2013-12-26 00:21:08 -0500 |
| commit | aa2c743331f392e49d5b168b5e3d8c8a8084b8b4 (patch) | |
| tree | 4371286a5036588097bffdce7b5d6961164af130 /lib/ext2fs | |
| parent | d28759b22388404561cea092855e4daca3781358 (diff) | |
| download | android_external_e2fsprogs-aa2c743331f392e49d5b168b5e3d8c8a8084b8b4.tar.gz android_external_e2fsprogs-aa2c743331f392e49d5b168b5e3d8c8a8084b8b4.tar.bz2 android_external_e2fsprogs-aa2c743331f392e49d5b168b5e3d8c8a8084b8b4.zip | |
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>
Diffstat (limited to 'lib/ext2fs')
| -rw-r--r-- | lib/ext2fs/e2image.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/ext2fs/e2image.h b/lib/ext2fs/e2image.h index 55379801..53b20cc7 100644 --- a/lib/ext2fs/e2image.h +++ b/lib/ext2fs/e2image.h @@ -12,15 +12,6 @@ * %End-Header% */ -/* Image types */ -#define E2IMAGE_RAW 1 -#define E2IMAGE_QCOW2 2 - -/* Image flags */ -#define E2IMAGE_INSTALL_FLAG 1 -#define E2IMAGE_SCRAMBLE_FLAG 2 -#define E2IMAGE_IS_QCOW2_FLAG 4 - struct ext2_image_hdr { __u32 magic_number; /* This must be EXT2_ET_MAGIC_E2IMAGE */ char magic_descriptor[16]; /* "Ext2 Image 1.0", w/ null padding */ |
