From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62ADBC433DB for ; Wed, 17 Mar 2021 03:44:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EB96A64E04 for ; Wed, 17 Mar 2021 03:44:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB96A64E04 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:34904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMN7A-0000qq-58 for qemu-devel@archiver.kernel.org; Tue, 16 Mar 2021 23:44:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMN6T-0000NH-5i for qemu-devel@nongnu.org; Tue, 16 Mar 2021 23:44:13 -0400 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]:44709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMN6R-00064X-Lk for qemu-devel@nongnu.org; Tue, 16 Mar 2021 23:44:12 -0400 Received: by mail-ot1-x331.google.com with SMTP id y19-20020a0568301d93b02901b9f88a238eso504705oti.11 for ; Tue, 16 Mar 2021 20:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3yKH2zJ/PTflSGyf1i1Gg/5S89Ss7t+j8BN1GPvyZqE=; b=ljY3SXM/PH/25X2GkmhoE0Y/hVevBHVWV/EC+fNE6Z/DQOfFCLm1Giiij4EqExkn4c 30Lk90ovBoIY1KMKbobROaBtV/IYhNr+IXfNo8IsgoNlvtnD+sLUOXSOOh0Cw5PhKebF 9kR7mPxGs96L/lqjJKuPN9zRspnia8l2e0a+ecajFhe9KunZC208kgKpMc18Cdec4B14 oJ6dULCRO99zSuJdv6xpBntgdrqxQMWzA71x5V/7QJVtnGfrJxIi8RT63146oP7XaY+j N7blC3N6imsi2z0PFTqlptizAhe4tLZgh1mug32HuquAYCv3rFAWrfmyPcZBFh+bEvg+ pwew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3yKH2zJ/PTflSGyf1i1Gg/5S89Ss7t+j8BN1GPvyZqE=; b=GXZrCrrFOKC5XlAs++/YfYghOi6+nue68QYz4VYxebtKqehIBz/ysJUVeF/zFla5rS XAf0tQMMr843sYT5G6OV6+yjllAcgvixEpMpgaxBGl9o6PNI5cikOA4pEeZfX0UFTsTw fjSUjmCunWIFEDhJ6Gf4pvLk1NTFQj5xtPG2ll8aYfqaryU3uQ1ZaVXWY07ZgAE5X/It ERCF2/EgLOpZeCNJwwN6vo43YuMSsTUFJMj9S9grTtd3aapeaIbY25PGpuKNPKUkkzCz /vFAACetWZ0ir73YsAKz3uPR7D1GfBwUhRgGOoorqy6bGKCgtZxLRVkSDMyTNrqkXijj iN2A== X-Gm-Message-State: AOAM532vIkEn9ldT7yNBvxglhXrbzJDlET/PfpiJ2+UfNjbbYoEz1hd9 PfA1aWAJl5Tnv0qYa04MSxEKOm5nCD8YulJSuTY/iTyfxYU= X-Google-Smtp-Source: ABdhPJy9f4SVnBBbeOBgitjzqyjSUl8yNXORlF61Sd9J1pGJhVpJ2/hlapHYH8n3KOmrd/aVMiRfy0fK/gNF4eMcrHc= X-Received: by 2002:a9d:340b:: with SMTP id v11mr1673428otb.284.1615952650271; Tue, 16 Mar 2021 20:44:10 -0700 (PDT) MIME-Version: 1.0 From: zhao xiaojun Date: Wed, 17 Mar 2021 11:43:59 +0800 Message-ID: Subject: Can not use hmp block_resize command with -blockdev option To: qemu-devel@nongnu.org Content-Type: multipart/alternative; boundary="000000000000b17ef205bdb34b82" Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=xiaojun.zhao141@gmail.com; helo=mail-ot1-x331.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000b17ef205bdb34b82 Content-Type: text/plain; charset="UTF-8" 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. result output: { "return": [ { "io-status": "ok", "device": "", ... } I noticed that the qmp block_resize command supports device or node-name as argument. If i can continue use the the hmp block_resize command with the device argument? Regards. --000000000000b17ef205bdb34b82 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0
I use -blockdev option to specify= a drive when qemu boot and i want to resize it with hmp block_resize comma= nd. The hmp block_resize comand's arguments: block_resize device new_si= ze.
So I query the device by qmp query_block command, but the dev= ice filed of the result output is NULL string.

res= ult output:
{
=C2=A0 "return": [
=C2=A0 =C2=A0 {<= br>=C2=A0 =C2=A0 =C2=A0 "io-status": "ok",
=C2=A0 = =C2=A0 =C2=A0 "device": "",
=C2=A0 =C2=A0= =C2=A0 =C2=A0 ...
}

I noticed that the = qmp block_resize command supports device or node-name as argument.

If i can continue use the the hmp block_resize command wit= h the device argument?

Regards.
=
--000000000000b17ef205bdb34b82--