On 12/06/2016 04:14 PM, Max Reitz wrote: > On 06.12.2016 23:12, Eric Blake wrote: >> On 12/06/2016 04:00 PM, Max Reitz wrote: >> >>>> Tested by setting up an NBD server with export 'foo', then invoking: >>>> $ ./qemu-io >>>> qemu-io> open -o driver=blkdebug blkdebug::nbd://localhost:10809/foo >> >> By the way, I'd LOVE to know if there is a way to write a qemu-io >> command line that would do this connection automatically (so that I can >> batch commands up front and benefit from the shell's history) rather >> than having to issue an 'open' after the fact. I tried various >> incantations with --object and --image-opts, but got stumped. > > Can't you just do qemu-io -c 'open'?
I suppose that would get command-line history. But I still want interactive mode. The moment you use -c, ALL commands get run back-to-back without stopping, so I'd have to add additional -c 'read'/'write' commands up front. I like interactive mode (open pre-connected, now let me explore the image at will). -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature