From: Theodore Ts'o Date: Tue, 1 Jan 2008 15:42:41 +0000 (-0500) Subject: e2image: If there is an error while writing a block, call exit(1) X-Git-Tag: v1.40.5~34 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c9eaebf6ff51bbb0a3938b20e01a7b3971ba7207;p=tools%2Fe2fsprogs.git 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" --- diff --git a/misc/e2image.c b/misc/e2image.c index b4836ea..f17b784 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); } } }