[pve-devel] activate/deactivate volume
Michael Rasmussen
mir at datanom.net
Sun Oct 23 12:42:54 CEST 2016
On Sun, 23 Oct 2016 12:31:38 +0200
Michael Rasmussen <mir at datanom.net> wrote:
> 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.
>
Creating a VM or CT with id 100 on pve-storage will name disk 1:
VM: pve-storage:vm-101-disk-1
CT: pve-storage:vm-101-disk-1
Could be great if:
VM: pve-storage:vm-101-disk-1
CT: pve-storage:ct-101-disk-1
--
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:
<gorgo> what do you get when someone cracks your debian machine ?
<gorgo> mashed potato...
-------------- 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/1c439a5a/attachment.sig>
More information about the pve-devel
mailing list