Re: [Qemu-devel] [PATCH V2 4/5] Add backing file loop check in change_backing_file()

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Signed-off-by: Xu Wang > --- > block.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/block.c b/block.c > index 6df25d9..379b79b 100644 > --- a/block.c > +++ b/block.c > @@ -1971,6 +1971,12 @@ int bdrv_change_backing_file(BlockDriverState *bs

[Qemu-devel] [PATCH V2 4/5] Add backing file loop check in change_backing_file()

2013-07-08 Thread Xu Wang
Signed-off-by: Xu Wang --- block.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/block.c b/block.c index 6df25d9..379b79b 100644 --- a/block.c +++ b/block.c @@ -1971,6 +1971,12 @@ int bdrv_change_backing_file(BlockDriverState *bs, return -EINVAL; } +/* Check if loo