Re: [Qemu-devel] [PATCH 3/3] block: use proper qerrors in qmp_block_resize

2012-01-04 Thread Stefan Hajnoczi
On Wed, Jan 4, 2012 at 7:59 PM, Luiz Capitulino wrote: > On Wed,  4 Jan 2012 17:38:23 + > Stefan Hajnoczi wrote: > >> Let's report specific errors so that management tools and users can >> identify the problem. >> >> Two new qerrors are needed: >>  * QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM >>

Re: [Qemu-devel] [PATCH 3/3] block: use proper qerrors in qmp_block_resize

2012-01-04 Thread Luiz Capitulino
On Wed, 4 Jan 2012 17:38:23 + Stefan Hajnoczi wrote: > Let's report specific errors so that management tools and users can > identify the problem. > > Two new qerrors are needed: > * QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM > * QERR_DEVICE_IS_READ_ONLY for EACCES Great series, the number

[Qemu-devel] [PATCH 3/3] block: use proper qerrors in qmp_block_resize

2012-01-04 Thread Stefan Hajnoczi
Let's report specific errors so that management tools and users can identify the problem. Two new qerrors are needed: * QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM * QERR_DEVICE_IS_READ_ONLY for EACCES Signed-off-by: Stefan Hajnoczi --- blockdev.c | 26 ++ qerror.c |