From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cADTP-00010n-KQ for qemu-devel@nongnu.org; Fri, 25 Nov 2016 05:11:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cADTO-0002ek-No for qemu-devel@nongnu.org; Fri, 25 Nov 2016 05:11:15 -0500 Date: Fri, 25 Nov 2016 11:11:04 +0100 From: Kevin Wolf Message-ID: <20161125101104.GA4584@noname.redhat.com> References: <20161115063715.12561-1-pbutsykin@virtuozzo.com> <20161115063715.12561-6-pbutsykin@virtuozzo.com> <20161124122050.GA4535@noname.redhat.com> <58380B4F.50703@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58380B4F.50703@virtuozzo.com> Subject: Re: [Qemu-devel] [PATCH v1 05/18] tests/test-rbcache: add test cases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Butsykin Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, den@openvz.org, famz@redhat.com, stefanha@redhat.com, mreitz@redhat.com, eblake@redhat.com Am 25.11.2016 um 10:58 hat Pavel Butsykin geschrieben: > On 24.11.2016 15:20, Kevin Wolf wrote: > >Visualised, we test these requests: > > > >1: * > >2: ** > >3: * > >4: ******* > >5: ******** > > > >You test inserting the only element, inserting after the last element, > >inserting in the middle and inserting something that overlaps two other > >requests at its start and end. > > > >That's a good start, but it might be worth testing more scenarios: > > > >- Inserting a new first element to a non-empty cache > > What do you mean? To insert an element with zero offset when the cache > already contains other nodes.? Yes, that would be one way to do it. Maybe just swap requests 1 and 2. > >- Overlapping only at the start > >- Overlapping only at the end > >- Overlapping in the middle (i.e. including existing ranges as a > > subset) > > * With only one node > > * With multiple nodes (like adding offset=2, size=16kb here) > > > > Ok. Kevin