Re: [Qemu-devel] [v1 Patch 5/10]Qemu: raw-posix image file reopen

2012-07-04 Thread Shrinidhi Joshi
t to stashed state */ > + if (s->fd != -1) { > + close(s->fd); > + } > +/* memcpy(s, raw_rs->stash_s, sizeof(BDRVRawState)); */ Why the comment? raw-posix driver changes for bdrv_reopen_xx functions to safely reopen image files. Reopening

Re: [Qemu-devel] [v1 Patch 3/10]Qemu: Cmd "block_set_hostcache" for dynamic cache change

2012-07-04 Thread Shrinidhi Joshi
qemu.orig/hmp.c > +++ qemu/hmp.c > @@ -836,6 +836,15 @@ void hmp_block_set_io_throttle(Monitor * > hmp_handle_error(mon, &err); > } > > +void hmp_block_set_hostcache(Monitor *mon, const QDict *qdict) > +{ > + Error *err = NULL; > + > + qmp_block_set_