[libvirt] PATCH: 9/11: Dynamically register storage backends

Daniel Veillard veillard at redhat.com
Fri Oct 31 13:08:45 UTC 2008

On Thu, Oct 30, 2008 at 01:41:45PM +0000, Daniel P. Berrange wrote:
> There is an unfortunate cylic dependancy between the storage_backend.c
> file and all the storage backend implementations due to the statically
> declared table of drivers. This patch addresses the problem by making
> the table of backends dynamically registered. The storage driver will
> thus register each backend explicitly at its startup. The storage_backend.c
> file is thus now completely generic, and has no compile time dep on the
> individual drivers. I should have written it this way in the first
> place :-)

  Yup, sounds right and looks good, +1


Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

More information about the libvir-list mailing list