implement map_volume and unmap_volume

This allows to request a mapped device/path explicitly, regardles of
the storage option, eg. krbd option in the RBDplugin.

Bump of the storage ABI => 2

Co-authored-by: Alwin Antreich <a.antreich@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer
2018-11-08 14:05:17 +01:00
committed by Thomas Lamprecht
parent 8b6b710265
commit 40d698932e
3 changed files with 86 additions and 33 deletions

View File

@ -949,6 +949,18 @@ sub deactivate_storage {
# do nothing by default
}
sub map_volume {
my ($class, $storeid, $scfg, $volname, $snapname) = @_;
return undef;
}
sub unmap_volume {
my ($class, $storeid, $scfg, $volname, $snapname) = @_;
return 1;
}
sub activate_volume {
my ($class, $storeid, $scfg, $volname, $snapname, $cache) = @_;