From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxXFQ-0002t3-5y for qemu-devel@nongnu.org; Wed, 05 Sep 2018 08:49:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxXFP-0001M8-BJ for qemu-devel@nongnu.org; Wed, 05 Sep 2018 08:49:28 -0400 From: Alberto Garcia In-Reply-To: <20180809213528.14738-25-mreitz@redhat.com> References: <20180809213528.14738-1-mreitz@redhat.com> <20180809213528.14738-25-mreitz@redhat.com> Date: Wed, 05 Sep 2018 14:49:17 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH for-3.1 v10 24/31] block: Purify .bdrv_refresh_filename() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Kevin Wolf , Eric Blake On Thu 09 Aug 2018 11:35:21 PM CEST, Max Reitz wrote: > Currently, BlockDriver.bdrv_refresh_filename() is supposed to both > refresh the filename (BDS.exact_filename) and set BDS.full_open_options. > Now that we have generic code in the central bdrv_refresh_filename() for > creating BDS.full_open_options, we can drop the latter part from all > BlockDriver.bdrv_refresh_filename() implementations. > > This also means that we can drop all of the existing default code for > this from the global bdrv_refresh_filename() itself. > > Furthermore, we now have to call BlockDriver.bdrv_refresh_filename() > after having set BDS.full_open_options, because the block driver's > implementation should now be allowed to depend on BDS.full_open_options > being set correctly. > > Finally, with this patch we can drop the @options parameter from > BlockDriver.bdrv_refresh_filename(); also, add a comment on this > function's purpose in block/block_int.h while touching its interface. > > This completely obsoletes blklogwrite's implementation of > .bdrv_refresh_filename(). > > Signed-off-by: Max Reitz Reviewed-by: Alberto Garcia Berto