[pve-devel] [PATCH v3] Add support for custom storage plugins

Dmitry Petuhov mityapetuhov at gmail.com
Fri Aug 26 13:56:24 CEST 2016


26.08.2016 13:00, Alexandre DERUMIER wrote:
> Hi,
>
> I thing that should be improved, is in Storage/Plugin.pm
>
>          if ($type eq 'iscsi' || $type eq 'nfs' || $type eq 'rbd' || $type eq 'sheepdog' || $type eq 'iscsidirect' || $type eq 'glusterfs' || $type eq 'zfs' || $type eq 'drbd') {
>              $d->{shared} = 1;
>          }
>
> Could be great to define it in plugins directly.
We can set it through storage.cfg. Just add ``shared => { optional => 1 
},'' in options() method of plugin and set it true in config if storage 
supposed to be shared. It's false by default, which is safe value. I 
think that's enough for custom plugins.





More information about the pve-devel mailing list