[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert
From: |
Dong Xu Wang |
Subject: |
[Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert |
Date: |
Wed, 13 Jun 2012 22:36:27 +0800 |
add-cow file can't live alone, must together will image_file and backing_file.
If we implement qemu-img convert operation for add-cow file format, we must
create image_file and backing_file manually, that will be confused for users,
so we just ignore add-cow format while doing converting.
Signed-off-by: Dong Xu Wang <address@hidden>
---
qemu-img.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index c8a70ff..0bce61c 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -756,6 +756,12 @@ static int img_convert(int argc, char **argv)
}
}
+ if (strcmp(out_fmt, "add-cow") == 0) {
+ error_report("Convert operation does not support %s format.", out_fmt);
+ ret = -1;
+ goto out;
+ }
+
/* Find driver and parse its options */
drv = bdrv_find_format(out_fmt);
if (!drv) {
--
1.7.1
- [Qemu-devel] [PATCH 1/6 v10] docs: spec for add-cow file format, Dong Xu Wang, 2012/06/13
- [Qemu-devel] [PATCH 2/6] block: make some functions public, Dong Xu Wang, 2012/06/13
- [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert,
Dong Xu Wang <=
- Re: [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert, Kevin Wolf, 2012/06/14
- Re: [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert, Dong Xu Wang, 2012/06/14
- Re: [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert, Kevin Wolf, 2012/06/14
- Re: [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert, Dong Xu Wang, 2012/06/14
- Re: [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert, Kevin Wolf, 2012/06/14
- Re: [Qemu-devel] [PATCH 4/6] qemu-img: add-cow will not support convert, Dong Xu Wang, 2012/06/14
[Qemu-devel] [PATCH 3/6] add-cow file format, Dong Xu Wang, 2012/06/13
[Qemu-devel] [PATCH 6/6] add-cow: support qemu-iotests, Dong Xu Wang, 2012/06/13