Re: [PATCH] virtio_blk: fix incorrect message when disk is resized

2017-08-04 Thread Michael S. Tsirkin
On Fri, Aug 04, 2017 at 10:37:54AM +0100, Stefan Hajnoczi wrote: > On Wed, Jul 26, 2017 at 03:32:23PM +0100, Stefan Hajnoczi wrote: > > The message printed on disk resize is incorrect. The following is > > printed when resizing to 2 GiB: > > > > $ truncate -s 1G test.img > > $ qemu -device vi

Re: [PATCH] virtio_blk: fix incorrect message when disk is resized

2017-08-04 Thread Stefan Hajnoczi
On Wed, Jul 26, 2017 at 03:32:23PM +0100, Stefan Hajnoczi wrote: > The message printed on disk resize is incorrect. The following is > printed when resizing to 2 GiB: > > $ truncate -s 1G test.img > $ qemu -device virtio-blk-pci,logical_block_size=4096,... > (qemu) block_resize drive1 2G >

[PATCH] virtio_blk: fix incorrect message when disk is resized

2017-07-26 Thread Stefan Hajnoczi
The message printed on disk resize is incorrect. The following is printed when resizing to 2 GiB: $ truncate -s 1G test.img $ qemu -device virtio-blk-pci,logical_block_size=4096,... (qemu) block_resize drive1 2G virtio_blk virtio0: new size: 4194304 4096-byte logical blocks (17.2 GB/16.0