mirror of https://github.com/vitalif/e2fsprogs
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>bitmap-optimize
parent
8192c63308
commit
c9eaebf6ff
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue