Am 07.02.25 um 10:02 schrieb Roland Kammerer via pve-devel: > 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
Hi, the first entry is all valid content types that the plugin supports, the second entry is the fallback for the storage configuration, i.e. if the storage configuration for a specific storage does not explicitly specify a 'content' option, those will be used/allowed. See the parse_config() method in Plugin.pm. Best Regards, Fiona _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel