Re: [Qemu-devel] [PATCH] qemu-img: Report error even with --oformat=json

2014-06-02 Thread Kevin Wolf
Am 31.05.2014 um 21:33 hat Max Reitz geschrieben: img_check() should report that the format of the given image does not support checks even if JSON output is desired. JSON data is output to stdout, as opposed to error messages, which are (in the case of qemu-img) printed to stderr. Therefore,

Re: [Qemu-devel] [PATCH] qemu-img: Report error even with --oformat=json

2014-06-01 Thread Markus Armbruster
Max Reitz mre...@redhat.com writes: img_check() should report that the format of the given image does not support checks even if JSON output is desired. JSON data is output to stdout, as opposed to error messages, which are (in the case of qemu-img) printed to stderr. Therefore, it is easy to

[Qemu-devel] [PATCH] qemu-img: Report error even with --oformat=json

2014-05-31 Thread Max Reitz
img_check() should report that the format of the given image does not support checks even if JSON output is desired. JSON data is output to stdout, as opposed to error messages, which are (in the case of qemu-img) printed to stderr. Therefore, it is easy to distinguish between the two. Also,