]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/RBDPlugin.pm
rbd : create_base
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 5 Feb 2013 11:55:33 +0000 (12:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Feb 2013 08:35:55 +0000 (09:35 +0100)
commit992e6835e2742a1aad73490aafd1df3cfbd32188
treedb512944039a307a1fdca1ccd1a2725538ae2f5a
parent8b3ae5180bc98b7d836873035ed7d555e8a2795c
rbd : create_base

- rename volume
- take snapshot '__base__'
- protect the snapshot

Fix: the volume_snapshot sub need a $running parameter,
to known if it need to use rbd command or qmp command to take the snapshot.
for now, I pass undef, as it should be always offline.

(But we need to verify somewhere that vm is not running,
because take a snapshot with rbd command on a running vm can break it.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/RBDPlugin.pm