Re: Can not use hmp block_resize command with -blockdev option

2021-03-18 Thread LKML
On Thu, 18 Mar 2021 17:17:50 +0100 Kevin Wolf wrote: > Am 18.03.2021 um 16:15 hat zhao xiaojun geschrieben: > > Thanks you, that's really good idea. And I also have the following > > question: > > > > There are some hmp and qmp commands in my scripts, they need the > > device as an argument. Rec

Re: Can not use hmp block_resize command with -blockdev option

2021-03-18 Thread Kevin Wolf
Am 18.03.2021 um 16:15 hat zhao xiaojun geschrieben: > Thanks you, that's really good idea. And I also have the following question: > > There are some hmp and qmp commands in my scripts, they need the device as > an argument. Recently. i used the -blockdev replace the -drive to > specify the disk

Re: Can not use hmp block_resize command with -blockdev option

2021-03-18 Thread zhao xiaojun
Thanks you, that's really good idea. And I also have the following question: There are some hmp and qmp commands in my scripts, they need the device as an argument. Recently. i used the -blockdev replace the -drive to specify the disk drive, then use qmp's query_block to query the device, but the

Re: Can not use hmp block_resize command with -blockdev option

2021-03-18 Thread Kevin Wolf
Am 17.03.2021 um 23:49 hat John Snow geschrieben: > On 3/16/21 11:43 PM, zhao xiaojun wrote: > > Hi, > > I use -blockdev option to specify a drive when qemu boot and i want to > > resize it with hmp block_resize command. The hmp block_resize comand's > > arguments: block_resize device new_size. > >

Re: Can not use hmp block_resize command with -blockdev option

2021-03-17 Thread John Snow
On 3/16/21 11:43 PM, zhao xiaojun wrote: Hi, I use -blockdev option to specify a drive when qemu boot and i want to resize it with hmp block_resize command. The hmp block_resize comand's arguments: block_resize device new_size. So I query the device by qmp query_block command, but the device fi

Can not use hmp block_resize command with -blockdev option

2021-03-16 Thread zhao xiaojun
Hi, I use -blockdev option to specify a drive when qemu boot and i want to resize it with hmp block_resize command. The hmp block_resize comand's arguments: block_resize device new_size. So I query the device by qmp query_block command, but the device filed of the result output is NULL string. res