Am Mittwoch, 30. Dezember 2009 13:18 schrieb Stefan Weil: > Laurent Coustet schrieb: > > I've seen the code on git a little bit, seems rather simple to me, but > > what do you think is the better way to integrate such a fonctionality > > ? New command ? > > > > The best approch for me I think is to extend "convert". > > > > Example: > > qemu-img -f qcow2 -O qcow2 original5G.qcow2 output10G.qcow2 +5G > > > > Thanks, > > Extending convert would be good if you want to create a new image. > This syntax might be better (no new parameter, final size instead of delta): > > qemu-img convert -f qcow2 -O qcow2 -o size=10G original5G.qcow2 > output10G.qcow2 > > For resizing an existing image, a new command is needed: > > qemu-img resize -f qcow2 -o size=10G original5G.qcow2 > > Although there is no urgent need for either variant...
I agree that convert is the wrong command if you don't copy. And copying an image while resizing is probably not a very common task. If you really need to do it you could copy first and resize afterwards. So I'm all for the qemu-img resize version. Kevin