Received: from eggs.gnu.org ([2001:4830:134:3::10]:52717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNFz2-0007EN-Cr for qemu-devel@nongnu.org; Fri, 29 Aug 2014 02:48:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNFyt-00026i-86 for qemu-devel@nongnu.org; Fri, 29 Aug 2014 02:48:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNFyt-00026W-0a for qemu-devel@nongnu.org; Fri, 29 Aug 2014 02:48:19 -0400 From: Markus Armbruster References: <1409205191-11406-1-git-send-email-famz@redhat.com> <53FFABDB.2000609@redhat.com> <20140829005500.GD4196@T430.redhat.com> Date: Fri, 29 Aug 2014 08:48:11 +0200 In-Reply-To: <20140829005500.GD4196@T430.redhat.com> (Fam Zheng's message of "Fri, 29 Aug 2014 08:55:00 +0800") Message-ID: <87bnr3sses.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3] block: Introduce "null" driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , benoit.canet@irqsave.net, qemu-devel@nongnu.org, Stefan Hajnoczi Fam Zheng writes: > On Thu, 08/28 16:23, Eric Blake wrote: >> On 08/27/2014 11:53 PM, Fam Zheng wrote: >> > This is an analogue to Linux null_blk. It can be used for testing block >> > device emulation and general block layer functionalities such as >> > coroutines and throttling, where disk IO is not necessary or wanted. >> > >> > Use null:// for AIO version, and null-co:// for coroutine version. >> > >> > Signed-off-by: Fam Zheng >> > >> > --- >> >> > +++ b/qapi/block-core.json >> > @@ -1150,7 +1150,8 @@ >> > 'data': [ 'archipelago', 'file', 'host_device', 'host_cdrom', 'host_floppy', >> > 'http', 'https', 'ftp', 'ftps', 'tftp', 'vvfat', 'blkdebug', >> > 'blkverify', 'bochs', 'cloop', 'cow', 'dmg', 'parallels', 'qcow', >> > - 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum' ] } >> > + 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum', >> > + 'null' ] } >> >> As mentioned elsewhere, you probably want 'null' AND 'null-co'. Bummer >> that this list is mostly alphabetical, but that 'quorum' and 'null' are >> out of order. > > I'll add null-co to the list. But this list is a bit far from alphabetical: > > archipelago, ..., vvfat, blkdebug,... Two sensible ways to organize lists of things: keep it sorted alphabetically by name, or order by some ontology. Since ontology is neither obvious nor relevant here, I'd go for alphabetic. Separate cleanup patch, please.