From nobody Wed Feb 11 13:08:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.39 as permitted sender) client-ip=209.132.183.39; envelope-from=libvir-list-bounces@redhat.com; helo=mx6-phx2.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.39 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by mx.zohomail.com with SMTPS id 1486571411503592.245494298811; Wed, 8 Feb 2017 08:30:11 -0800 (PST) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v18GQqFO038669; Wed, 8 Feb 2017 11:26:52 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v18GQjRo017913 for ; Wed, 8 Feb 2017 11:26:45 -0500 Received: from angien.brq.redhat.com (dhcp129-162.brq.redhat.com [10.34.129.162]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v18GQbSn027100; Wed, 8 Feb 2017 11:26:45 -0500 From: Peter Krempa To: libvir-list@redhat.com Date: Wed, 8 Feb 2017 17:27:07 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-loop: libvir-list@redhat.com Cc: Peter Krempa Subject: [libvirt] [PATCH 07/11] storage: Turn driver backends into (static) modules X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Compile the storage driver into modules rather than by compiling all files together. All modules are still linked together statically. --- src/Makefile.am | 114 ++++++++++++++++++++++++++++++++++++++++++++++++----= ---- 1 file changed, 98 insertions(+), 16 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 2f32d4197..b71209a9d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1674,52 +1674,134 @@ noinst_LTLIBRARIES +=3D libvirt_driver_storage.la #libvirt_la_BUILT_LIBADD +=3D libvirt_driver_storage.la endif ! WITH_DRIVER_MODULES libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_SOURCES) -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_FS_SOURCES) + + +libvirt_storage_backend_fs_la_SOURCES =3D $(STORAGE_DRIVER_FS_SOURCES) +libvirt_storage_backend_fs_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_fs.la +libvirt_driver_storage_impl_la_LIBADD +=3D libvirt_storage_backend_fs.la endif WITH_STORAGE if WITH_STORAGE_LVM -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_LVM_SOURCES) +libvirt_storage_backend_logical_la_SOURCES =3D \ + $(STORAGE_DRIVER_LVM_SOURCES) +libvirt_storage_backend_logical_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_logical.la +libvirt_driver_storage_impl_la_LIBADD +=3D \ + libvirt_storage_backend_logical.la endif WITH_STORAGE_LVM if WITH_STORAGE_ISCSI -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_ISCSI_SOURCES) +libvirt_storage_backend_iscsi_la_SOURCES =3D \ + $(STORAGE_DRIVER_ISCSI_SOURCES) +libvirt_storage_backend_iscsi_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + -I$(srcdir)/secret \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_iscsi.la +libvirt_driver_storage_impl_la_LIBADD +=3D \ + libvirt_storage_backend_iscsi.la endif WITH_STORAGE_ISCSI if WITH_STORAGE_SCSI -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_SCSI_SOURCES) +libvirt_storage_backend_scsi_la_SOURCES =3D $(STORAGE_DRIVER_SCSI_SOURCES) +libvirt_storage_backend_scsi_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_scsi.la +libvirt_driver_storage_impl_la_LIBADD +=3D libvirt_storage_backend_scsi.la endif WITH_STORAGE_SCSI if WITH_STORAGE_MPATH -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_MPATH_SOURCES) -libvirt_driver_storage_impl_la_CFLAGS +=3D $(DEVMAPPER_CFLAGS) -libvirt_driver_storage_impl_la_LIBADD +=3D $(DEVMAPPER_LIBS) +libvirt_storage_backend_mpath_la_SOURCES =3D \ + $(STORAGE_DRIVER_MPATH_SOURCES) +libvirt_storage_backend_mpath_la_LIBADD =3D $(DEVMAPPER_LIBS) +libvirt_storage_backend_mpath_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(DEVMAPPER_CFLAGS) \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_mpath.la +libvirt_driver_storage_impl_la_LIBADD +=3D \ + libvirt_storage_backend_mpath.la endif WITH_STORAGE_MPATH if WITH_STORAGE_DISK -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_DISK_SOURCES) +libvirt_storage_backend_disk_la_SOURCES =3D $(STORAGE_DRIVER_DISK_SOURCES) +libvirt_storage_backend_disk_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_disk.la +libvirt_driver_storage_impl_la_LIBADD +=3D libvirt_storage_backend_disk.la endif WITH_STORAGE_DISK if WITH_STORAGE_RBD -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_RBD_SOURCES) -libvirt_driver_storage_impl_la_LIBADD +=3D $(LIBRBD_LIBS) +libvirt_storage_backend_rbd_la_SOURCES =3D $(STORAGE_DRIVER_RBD_SOURCES) +libvirt_storage_backend_rbd_la_LIBADD =3D $(LIBRBD_LIBS) +libvirt_storage_backend_rbd_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + -I$(srcdir)/secret \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_rbd.la +libvirt_driver_storage_impl_la_LIBADD +=3D libvirt_storage_backend_rbd.la endif WITH_STORAGE_RBD if WITH_STORAGE_SHEEPDOG -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_SHEEPDOG_SOUR= CES) +libvirt_storage_backend_sheepdog_la_SOURCES =3D \ + $(STORAGE_DRIVER_SHEEPDOG_SOURCES) +libvirt_storage_backend_sheepdog_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_sheepdog.la +libvirt_driver_storage_impl_la_LIBADD +=3D \ + libvirt_storage_backend_sheepdog.la endif WITH_STORAGE_SHEEPDOG if WITH_STORAGE_GLUSTER -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_GLUSTER_SOURC= ES) -libvirt_driver_storage_impl_la_CFLAGS +=3D $(GLUSTERFS_CFLAGS) -libvirt_driver_storage_impl_la_LIBADD +=3D $(GLUSTERFS_LIBS) +libvirt_storage_backend_gluster_la_SOURCES =3D \ + $(STORAGE_DRIVER_GLUSTER_SOURCES) +libvirt_storage_backend_gluster_la_LIBADD =3D $(GLUSTERFS_LIBS) +libvirt_storage_backend_gluster_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(GLUSTERFS_CFLAGS) \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_gluster.la +libvirt_driver_storage_impl_la_LIBADD +=3D \ + libvirt_storage_backend_gluster.la endif WITH_STORAGE_GLUSTER if WITH_STORAGE_ZFS -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_ZFS_SOURCES) +libvirt_storage_backend_zfs_la_SOURCES =3D $(STORAGE_DRIVER_ZFS_SOURCES) +libvirt_storage_backend_zfs_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_zfs.la +libvirt_driver_storage_impl_la_LIBADD +=3D libvirt_storage_backend_zfs.la endif WITH_STORAGE_ZFS if WITH_STORAGE_VSTORAGE -libvirt_driver_storage_impl_la_SOURCES +=3D $(STORAGE_DRIVER_VSTORAGE_SOUR= CES) +libvirt_storage_backend_vstorage_la_SOURCES =3D \ + $(STORAGE_DRIVER_VSTORAGE_SOURCES) +libvirt_storage_backend_vstorage_la_CFLAGS =3D \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) + +noinst_LTLIBRARIES +=3D libvirt_storage_backend_vstorage.la +libvirt_driver_storage_impl_la_LIBADD +=3D \ + libvirt_storage_backend_vstorage.la endif WITH_STORAGE_VSTORAGE if WITH_NODE_DEVICES --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list