Laurent Vivier wrote: >> Basically, there are no longer qemu-nbd-*.o objects. qemu-img-*.o have >> -DQEMU_TOOL defined and qemu-img/qemu-nbd use identical copies of those >> objects. A special object is no longer build for nbd.c either. >> >> My longer goal would be to eliminate as many qemu-img-* objects as >> possible but let's take that one step at a time. >> > > I think it's a good idea... > Okay, the attached patch takes things to the logical conclusion. It introduces a qemu-tool.c file that has enough stub code to completely eliminate the QEMU_IMG and QEMU_NBD defines. The result is that we no longer need special qemu-img- or qemu-nbd- objects. I've done some light testing of Windows and Linux and it seems to work well. I'd like some other folks to give it some testing too though because it touches a lot of code. Regards, Anthony Liguori > Regards, > Laurent >