From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C30F5606A33D for ; Thu, 3 Dec 2026 17:07:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BY2j4Yqe Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZAGq-0006kL-EO; Thu, 03 Dec 2026 12:07:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZAGk-0006k2-TU for qemu-devel@nongnu.org; Thu, 03 Dec 2026 12:06:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZAGj-000588-7L for qemu-devel@nongnu.org; Thu, 03 Dec 2026 12:06:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796317613; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nuayLTA9LKWbxAR3dMq5TWTfCjcRD8M3vhfZ+p3ZjN8=; b=BY2j4YqezqGGr5ioWkqm4c9/RP0SjDo3tZSvGZfVbzMXeZXmBXxF6c5+W/1eH48cuABJ/3 ZcYMjy1Tv+wwDOQ7G3gvOQCO2Rc8xiAniOWxgJ3l+unz+BBbF+1KDXoR98cxT/PmgKLnGK BPBHmbInbww0QI3TaN8wd/n9YdYP9LM= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-486-p4w_n7y_O-yG90BwCnlnLQ-1; Thu, 3 Dec 2026 17:06:49 +0000 X-MC-Unique: p4w_n7y_O-yG90BwCnlnLQ-1 X-Mimecast-MFC-AGG-ID: p4w_n7y_O-yG90BwCnlnLQ_1796317609 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 865E8188EEC9 for ; Thu, 3 Dec 2026 17:06:48 +0000 (UTC) Received: from redhat.com (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CE3FB3002D13; Thu, 3 Dec 2026 17:06:46 +0000 (UTC) Date: Thu, 3 Dec 2026 11:06:44 -0600 From: Eric Blake To: Markus Armbruster Cc: qemu-devel@nongnu.org, Kevin Wolf , Hanna Czenczek Subject: Re: How to replace deprecated nbd-server-add by block-export-add Message-ID: References: <87ik1ably8.fsf@pond.sub.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87ik1ably8.fsf@pond.sub.org> User-Agent: NeoMutt/20260616 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass client-ip=170.10.133.124; envelope-from=eblake@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Dec 03, 2026 at 01:14:23PM +0100, Markus Armbruster wrote: > It's been years since commit 443127e81b9b (nbd: Deprecate > nbd-server-add/remove) went into v5.2.0. I tried to remove it, but > there are speedbumps: > > (1) The HMP commands still wrap around the deprecated QMP commands > instead of their replacements or the internal interface. > > (2) There are several occurences in docs/. > > (3) There are quite a few occurences in tests/qemu-iotests/. Instances in qemu-iotests are internal, so we should be able to update them without holding up any deprecation action. More telling is whether the out-of-date places in the iotests have been copied and pasted into clients outside of QEMU, where our internal use of old practices is prolonging their external use. > > * "node name of @device" is the spicy one: > > - If @device is a node name, I need to pass that. Not a problem. > > - If @device is a device name, I need to figure out its node name, and > pass that. > > · If the thing was created with a user-specified node name, I need > to find the command that created it in the test / the doc example. > Not a problem. > > · Else, the node name is something QEMU made up on the spot, such as > "#block158". Problem: I can't predict that name. > > Is block-export-add missing a way to specify a device name? Is it possible to see if a given string is a node name, and if not, automatically check if it is a device name? You're right that node names are not always predictable, although we've been encouraging people to use node names rather than rely on generated ones. The generated node names cannot match device names, but I recall that was intentional - the leading # is not valid in a device name, so we gave ourselves a namespace such that any device without a node name is guaranteed that it picks a node name that does not collide; although the choice of names is non-deterministic to avoid reliance on that algorithm. > > Or is exporting something without a node-name deprecated without > replacement? The libvirt folks would need to double check that they have been naming every node, and thus not relying on generated node names. I think another way to word your question is "Have we reached the point where use of generated node names is no longer supported", at which point we can get rid of ALL support for #block158 naming in the code base (a larger cleanup than just nbd-server-add changing to block-export-add). I think we've documented our intentions long enough, that I would be in favor of eliminating support for generated node names. Whether we can do it right away, or still need a couple more releases (but this time with actual warning messages being output any time a name is generated) may depend on what else we can dig up in the way of users that did not create devices with explicit node names. -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org