qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-stable] [Qemu-block] [PATCH] nbd/server: fix NBD_CMD_CACHE


From: Eric Blake
Subject: Re: [Qemu-stable] [Qemu-block] [PATCH] nbd/server: fix NBD_CMD_CACHE
Date: Thu, 4 Oct 2018 09:29:09 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 10/4/18 8:02 AM, Kevin Wolf wrote:
Am 03.10.2018 um 17:10 hat Vladimir Sementsov-Ogievskiy geschrieben:
03.10.2018 17:57, Eric Blake wrote:
On 10/3/18 9:47 AM, Vladimir Sementsov-Ogievskiy wrote:
We should not go to structured-read branch on CACHE command, fix that.

Bug intoroduced in bc37b06a5cde24 "nbd/server: introduce NBD_CMD_CACHE"

s/intoroduced/introduced/

with the whole feature and affects 3.0.0 release.

Ouch. It's because I don't have an NBD client that can issue the
command, so the server side got released without sufficient testing.
Is there some way we could enhance qemu-io as NBD client to issue such
a command?

may be, just add qemu-io command, like x-debug-nbd-cmd, which will just
send any nbd command? and prints all server replies? Then we'll be able
to write any unit tests on nbd-server. It's not the first time the
problem arise..

Shouldn't it be easy to write a simple NBD client in Python and then use
that for test cases? I don't see why this needs to be in qemu-io, and
testing illegal requests is certainly easier with a custom client.

Indeed, and we already have tests/qemu-iotests/nbd-fault-injector.py which implements a custom server (unfortunately, it has not been updated to use newstyle yet!), as a reference for implementing a similar custom client.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]