[pve-devel] checking output of storage plugin API - volume_rollback_is_possible(..., blockers)
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu May 15 14:28:21 CEST 2025
> Andrei Perapiolkin <andrei.perepiolkin at open-e.com> hat am 15.05.2025 13:23 CEST geschrieben:
>
>
> Hi Fabian,
>
>
> Thank you for detailed response.
>
> > out of interest - is your plugin publicly available?
>
> Yes, my plugin is available at https://github.com/open-e/JovianDSS-Proxmox
>
> Regarding blockers usage:
> https://github.com/open-e/JovianDSS-Proxmox/blob/22d0f7f8c4606d470a988fc796b391f50cabd40f/OpenEJovianDSS/Common.pm#L472
depending on what the return value/$obj there is, that looks fine to me!
you could optimize the $blocker_found variable away, and just check
whether $blockers has any elements, but that's just making the code
a bit shorter :)
More information about the pve-devel
mailing list