[pve-devel] storage plugins: what is plugindata()->{content}[1]
Roland Kammerer
roland.kammerer at linbit.com
Fri Feb 7 13:34:04 CET 2025
On Fri, Feb 07, 2025 at 10:18:42AM +0100, Fabian Grünbichler wrote:
>
> > Roland Kammerer via pve-devel <pve-devel at lists.proxmox.com> hat am 07.02.2025 10:02 CET geschrieben:
> > Hi all,
> >
> > rather simple question I guess, but I could not find the answer in
> > https://pve.proxmox.com/wiki/Storage_Plugin_Development and linked
> > documents and looks like my grep foo is lacking today, so here we go:
> > I guess I know what the first hash in the 'content' array is, but what
> > is the second? Actually, why is there a second one?
> >
> > Storage/LVMPlugin.pm:
> > content => [ {images => 1, rootdir => 1}, { images => 1 }]
> >
> > vs.
> >
> > Storage/LvmThinPlugin.pm:
> > content => [ {images => 1, rootdir => 1}, { images => 1, rootdir => 1}]
> >
> > Best, rck
>
> the first one defines the allowed/valid content types, the second the default one(s):
thanks Fabian and Fiona, that explains it.
> we are working on improving the docs and cleaning all of this up!
that is great news, even after maintaining a plugin for some time it
usually takes a deep dive into some core code to actually understand
some of the API. If there is then something to review or give feedback
from an external plugin dev's point of view feel free to explicitly ping
me.
Best, rck
More information about the pve-devel
mailing list