On 12/18/2013 07:27 PM, Hu Tao wrote: > This patch prepares for the subsequent patches. > > Signed-off-by: Hu Tao <hu...@cn.fujitsu.com> > --- > block/qcow2.c | 6 +++--- > include/block/block.h | 6 ++++++ > 2 files changed, 9 insertions(+), 3 deletions(-) >
> +++ b/include/block/block.h > @@ -527,4 +527,10 @@ int bdrv_debug_remove_breakpoint(BlockDriverState *bs, > const char *tag); > int bdrv_debug_resume(BlockDriverState *bs, const char *tag); > bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag); > > +enum prealloc_mode { > + PREALLOC_OFF = 0, > + PREALLOC_METADATA, > + PREALLOC_FULL, > +}; Why not make this a QAPI enum: { 'enum': 'PreallocMode', 'data': ['off', 'metadata', 'full'] } After all, this is the sort of thing where we will eventually want to select the prealloc mode of new files being created by online operations such as snapshot creation. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature