Whamcloud - gitweb
e2image, libext2fs: check for corrupted qcow2 image
authorTheodore Ts'o <tytso@mit.edu>
Sun, 24 Jun 2018 18:52:03 +0000 (14:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 24 Jun 2018 22:29:23 +0000 (18:29 -0400)
commit1ff009af1a06975603b8cd5d0381aca734e7f2f2
tree69092cc7d3820b259ac2b0117277638ed758004e
parente97319e259ab48257bdde1ba4e4bbfab9548579f
e2image, libext2fs: check for corrupted qcow2 image

If the qcow2 image is corrupted, qcow2_write_image() will now return
an indication of this to e2image (the only current user of
qcow2_write_image).

Also fix how e2image prints an error message it can't understand the
qcow2 image.

Addresses-Coverity-Bug: 1297511
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/qcow2.c
lib/ext2fs/qcow2.h
misc/e2image.c