Received: from eggs.gnu.org ([2001:4830:134:3::10]:59073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVzMf-0005RO-1e for qemu-devel@nongnu.org; Wed, 17 Feb 2016 05:29:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVzMb-0000td-7Y for qemu-devel@nongnu.org; Wed, 17 Feb 2016 05:29:44 -0500 Date: Wed, 17 Feb 2016 11:29:32 +0100 From: Kevin Wolf Message-ID: <20160217102932.GC29494@noname.str.redhat.com> References: <1455646106-2047-1-git-send-email-mreitz@redhat.com> <1455646106-2047-5-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455646106-2047-5-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 04/14] block: Add blk_name_taken() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, qemu-block@nongnu.org, Markus Armbruster Am 16.02.2016 um 19:08 hat Max Reitz geschrieben: > There may be BlockBackends which are not returned by blk_by_name(), but > do exist and have a name. Really? And if so, isn't this a bug? I expect that a BB is always either visible to the user and has a name that is resolved to this BB everywhere, or it's entirely internal and doesn't need a name therefore. Having a BB that is internal and therefore invisble, but has a name and prevents the creation of another BB or BDS with the same name, must certainly be confusing for the user. > blk_name_taken() allows testing whether a > specific name is in use already, independent of whether the BlockBackend > with that name is accessible through blk_by_name(). > > Signed-off-by: Max Reitz Kevin