Re: [Qemu-devel] [PATCH v2 5/9] block: Fix handling of image enlarging write

2018-07-05 Thread Kevin Wolf
Am 05.07.2018 um 09:36 hat Fam Zheng geschrieben: > Two problems exist when a write request that enlarges the image (i.e. > write beyond EOF) finishes: > > 1) parent is not notified about size change; > 2) dirty bitmap is not resized although we try to set the dirty bits; > > Fix them just like

[Qemu-devel] [PATCH v2 5/9] block: Fix handling of image enlarging write

2018-07-05 Thread Fam Zheng
Two problems exist when a write request that enlarges the image (i.e. write beyond EOF) finishes: 1) parent is not notified about size change; 2) dirty bitmap is not resized although we try to set the dirty bits; Fix them just like how bdrv_co_truncate works. Reported-by: Kevin Wolf