--- Begin Message ---
On Fri, Feb 07, 2025 at 10:18:42AM +0100, Fabian Grünbichler wrote:
>
> > Roland Kammerer via pve-devel <pve-devel@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
--- End Message ---
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel