On Wed, Nov 18, 2026 at 07:58:33AM -0600, Eric Blake wrote: > > Eric: is there a way to implement the tests in > > tests/qemu-iotests/nbd-fault-injector.py? At least that already contains > > the NBD server logic and it would just be a question of adding the > > specific server responses needed to exercise the block/nbd.c code paths. > > I'll play with the idea. If I can get it working, it would be a bit > stronger than my current approach of documenting a two-line hack patch > to nbd/server.c that will trigger one instance of the behavior, in > that it would be usable in a unit test rather than requiring the > reader to take additional steps to do a one-off build.
It turns out the bug is only triggered by structured replies, while nbd-fault-injector.py is currently only producing simple replies, so it is a bigger task to improve that file to the point of doing structured replies; and it is going to be faster for me to provide a one-off patch that makes a one-off build of QEMU non-compliant than to add features to a python script. -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org
