[pve-devel] [PATCH] Add support for custom storage plugins
Dmitry Petuhov
mityapetuhov at gmail.com
Fri Aug 12 11:15:04 CEST 2016
10.08.2016 14:58, Dietmar Maurer wrote:
>> Idea of this patch is to add folder /usr/share/perl5/PVE/Storage/Custom
>> where user can place his plugins and PVE will automatically load
>> them on start or warn if it could not and continue. Maybe we could
>> even load all plugins (except PVE::Storage::Plugin itself) this way,
>> because current storage plugins are not really plugins, if they
>> need to be explicitly loaded in PVE code :-).
> This is by intention - we want people to use open source software.
>
What bad would happen if you provide to users way to use custom storage
plugins without having to fix PVE sources on every libpve-storage-perl
package update?
Also such autoloading would allow you to split plugins into separate
packages, with own dependencies, thus allowing to install them
automatically if user wants some plugin, and not to overload
libpve-storage-perl with dependencies, which most users will not need.
Like move RBDPlugin into libpve-storage-rbd-perl and set ceph into
dependency. Or libpve-storage-glusterfs-perl and glusterfs-client. And
so on.
And users would share their plugins in own packages, which you not have
to support, but which could significantly empower PVE storage capabilities.
More information about the pve-devel
mailing list