[pve-devel] activate/deactivate volume

Michael Rasmussen mir at datanom.net
Sun Oct 23 12:31:38 CEST 2016


Hi all,

Since activating and deactivating a volume might mean different
procedures depending on who called us so I wonder whether there is a
way to detect who called the super methods in Storage.pm.

An example: activate and deactivate a volume in ZFSPlugin is not needed
for VM's so simply return 1. For CT's this is not the way here we need
to do something else which we must absolutely not do when called in VM
context.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
Mieux vaut tard que jamais!

[ Better late than never ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20161023/156fb041/attachment.sig>


More information about the pve-devel mailing list