qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] QEMU online guest disk resize wrt host block devices


From: Christoph Hellwig
Subject: Re: [Qemu-devel] QEMU online guest disk resize wrt host block devices
Date: Thu, 1 Sep 2011 16:05:26 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Sep 01, 2011 at 02:27:55PM +0100, Daniel P. Berrange wrote:
> I see two likely approaches:
> 
>  1. Add a parameter to the existing 'block_resize' command
>     'refreshonly=true|false'
> 
>  2. Add a separate command  'block_refresh'

I think all that you need is a to implement a bdrv_truncate method
for host devices that simply checks if the new size smaller or equal
to the device size, and return 0 in that case or an error otherwise.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]