Re: [Qemu-block] [PATCH 3/8] block: Let bdrv_open_inherit() return the snapshot

2015-12-02 Thread Max Reitz
On 01.12.2015 15:35, Alberto Garcia wrote: > On Tue 10 Nov 2015 04:44:18 AM CET, Max Reitz wrote: >> -int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Error **errp) >> +static BlockDriverState *bdrv_append_temp_snapshot(BlockDriverState *bs, >> +

Re: [Qemu-block] [PATCH 3/8] block: Let bdrv_open_inherit() return the snapshot

2015-12-01 Thread Alberto Garcia
On Tue 10 Nov 2015 04:44:18 AM CET, Max Reitz wrote: > -int bdrv_append_temp_snapshot(BlockDriverState *bs, int flags, Error **errp) > +static BlockDriverState *bdrv_append_temp_snapshot(BlockDriverState *bs, > + int flags, Error **errp) > { >

[Qemu-block] [PATCH 3/8] block: Let bdrv_open_inherit() return the snapshot

2015-11-09 Thread Max Reitz
If bdrv_open_inherit() creates a snapshot BDS and *pbs is NULL, that snapshot BDS should be returned instead of the BDS under it. To this end, bdrv_append_temp_snapshot() now returns the snapshot BDS instead of just appending it on top of the snapshotted BDS, and that function is made static