]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_file: de-modularize the local file backend
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Jan 2025 08:52:36 +0000 (09:52 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Jan 2025 12:28:09 +0000 (13:28 +0100)
commitf8558a87ac8525b16f4cbba4f24e0885fde2b79e
tree1ea5b7b23e70fb37cc43091997ed47b180abd9ec
parente6a4245d2a4db3857cfb38d4d3c4e3e0bcff6587
storage_file: de-modularize the local file backend

The 'storage_file' infrastructure serves as an abstraction on top of
file-looking storage technologies. Apart from local file it currently
implements also a backend for 'gluster'.

Historically it was all modularized and the local file module was
usually packaged with the 'core' part of the storage driver. Now with
split daemons one can install e.g. 'virqemud' without the storage driver
core which contains the 'fs' backend module. Since the qemu driver uses
the storage file backends to e.g. create storage for snapshots and
backups this allows users to create a deployment where some things will
not work properly.

As the 'fs' backend doesn't use any code that wouldn't be linked
directly anyways there's no point in actually shipping it as a module.

Let's compile it in so that all deployments can use it.

To achieve that, compile the source directly into the
'virt_storage_file_lib' static library and remove the loading code. Also
adjust the spec file.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
libvirt.spec.in
src/storage_file/meson.build
src/storage_file/storage_file_backend.c