diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-01-01 10:42:41 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-01-01 10:42:41 -0500 |
commit | c9eaebf6ff51bbb0a3938b20e01a7b3971ba7207 (patch) | |
tree | 8d6021fb506c6638e8bef574fa09b9cc27e070af /misc/e2image.c | |
parent | 8192c63308955169c139b4831feafa21096a2185 (diff) | |
download | e2fsprogs-c9eaebf6ff51bbb0a3938b20e01a7b3971ba7207.tar.gz |
e2image: If there is an error while writing a block, call exit(1)
If the disk fills while e2image is writing its output file, it will
spew a large number of error messages instead of exiting with a
non-zero status code after the first failure.
Addresses-Sourceforge-Feature-Request: #606508
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/e2image.c')
-rw-r--r-- | misc/e2image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/e2image.c b/misc/e2image.c index b4836eaf..f17b7849 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -330,6 +330,7 @@ static void write_block(int fd, char *buf, int sparse_offset, err = 0; com_err(program_name, err, "error writing block %u", block); + exit(1); } } } |