Daniel P. Berrange wrote: > On Wed, Feb 26, 2014 at 09:12:11AM -0700, Eric Blake wrote: > > On 02/26/2014 08:57 AM, Roman Bogorodskiy wrote: > > >> > > >> Conceptually ok, but I fear this impl will result in the logs getting > > >> polluted with "cannot delete tap device" or similar log messages on OS > > >> where TAP device deletion is automatic. > > > > > > Do you have an idea about better way to do that? > > > > Maybe add a boolean parameter that says whether the function should be > > quiet to avoid log noise, where the default is noisy but this cleanup > > path is quiet. > > Or just make it #ifdef BSD, or call virNetDevExists() to check it ?
I think I came to an #idef based idea which looks more or less easy to follow: - in virnetdevtap.h, define something like VIR_TAP_NEEDS_MANUAL_CLEANUP on certain OSes (i.e. FreeBSD only at this point) - Use it in qemu_process.c (that should be a little more readable than #ifdef __FreeBSD__) Roman Bogorodskiy
pgptiRQ9cJ_ql.pgp
Description: PGP signature
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list