New command "block_set_hostcache" added for dynamically changing
host pagecache setting of a block device.
Usage:
block_set_hostcache
= block device
= on/off
Example:
(qemu) block_set_hostcache ide0-hd0 off
Signed-off-by: Supriya Kannery
---
block.c | 54 +
On Fri, Nov 11, 2011 at 6:47 AM, Supriya Kannery
wrote:
> + {
> + .name = "block_set_hostcache",
> + .args_type = "device:B,option:b",
> + .params = "device on|off",
> + .help = "Change setting of host pagecache",
> + .user_print = monitor_use
On 11/17/2011 12:04 AM, Stefan Hajnoczi wrote:
On Fri, Nov 11, 2011 at 6:47 AM, Supriya Kannery
wrote:
+{
+.name = "block_set_hostcache",
+.args_type = "device:B,option:b",
+.params = "device on|off",
+.help = "Change setting of host pagecac
On Fri, 11 Nov 2011 12:17:48 +0530
Supriya Kannery wrote:
> New command "block_set_hostcache" added for dynamically changing
> host pagecache setting of a block device.
>
> Usage:
> block_set_hostcache
> = block device
> = on/off
>
> Example:
> (qemu) block_set_hostcache ide0-hd0
On Thu, 17 Nov 2011 11:15:06 +0530
Supriya Kannery wrote:
> On 11/17/2011 12:04 AM, Stefan Hajnoczi wrote:
> > On Fri, Nov 11, 2011 at 6:47 AM, Supriya Kannery
> > wrote:
> >> +{
> >> +.name = "block_set_hostcache",
> >> +.args_type = "device:B,option:b",
> >> +
Luiz Capitulino wrote:
On Fri, 11 Nov 2011 12:17:48 +0530
Supriya Kannery wrote:
+
+ret = bdrv_open(bs, bs->filename, bdrv_flags, drv);
+if (ret < 0) {
+/* Reopen failed. Try to open with original flags */
+qerror_report(QERR_REOPEN_FILE_FAILED, bs->filename);
+