rbd : find_free_diskname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
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>
rbd : clone_image

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd: fix: move find_free_diskname + fix trailing whitespace

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd : free_image : unprotect snapshot is base

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd: volume_size_info : parse_volname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd: volume_resize : parse_volname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd : volume_snapshot : parse volname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd : volume_snapshot_rollback : parse_volname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
rbd : volume_snapshot_delete : parse_volname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>