[Qemu-devel] [PATCH] block: Make block error codes consistent

2019-05-12 Thread Wensheng Tang
We should keep the error handling consistent. ENOMEDIUM is more meaningful than ENOENT a when driver cannot be loaded. --- block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block.c b/block.c index 5c2c6aa..6685be7 100644 --- a/block.c +++ b/block.c @@ -770,7 +770,7

[Qemu-devel] [PATCH] block: Make block error codes consistent

2019-05-12 Thread Wensheng Tang
(The last email does not include signed-off-by line. Please ignoreit) We should keep the error handling consistent. ENOMEDIUM is more meaningful than ENOENT a when driver cannot be loaded. Signed-off-by: Wensheng Tang --- block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif