From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4rzl-0005hL-7J for qemu-devel@nongnu.org; Mon, 23 May 2016 11:42:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4rzk-0003aL-BK for qemu-devel@nongnu.org; Mon, 23 May 2016 11:42:17 -0400 Date: Mon, 23 May 2016 17:42:06 +0200 From: Kevin Wolf Message-ID: <20160523154206.GD4951@noname.redhat.com> References: <1462552005-4887-1-git-send-email-eblake@redhat.com> <1462552005-4887-4-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1462552005-4887-4-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 03/19] block: Switch blk_*write_zeroes() to byte interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz , Stefan Hajnoczi , "Denis V. Lunev" , Paolo Bonzini Am 06.05.2016 um 18:26 hat Eric Blake geschrieben: > Sector-based blk_write() should die; convert the one-off > variant blk_write_zeroes() to use an offset/count interface > instead. Likewise for blk_co_write_zeroes() and > blk_aio_write_zeroes(). > > Signed-off-by: Eric Blake You built a nice trap here: bdrv_*write_zeroes() is still sector based whereas blk_*write_zeroes() changed to be byte based without a rename. That broke my block jobs series which converts from bdrv_* to blk_* after the next (seemingly clean) rebase. I fixed my series now, but can we please convert bdrv_* as well before we get more victims in the same trap? Also (and perhaps more importantly) we could rename the functions to something like blk_*pwrite_zeroes(), indicating the switch to byte based. Kevin