Storage Plugins: extend clone_image by snap parameter and add support to RBDPlugin

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
This commit is contained in:
Stefan Priebe
2014-07-04 10:30:54 +02:00
committed by Dietmar Maurer
parent 2362bc8798
commit f236eaf80e
7 changed files with 25 additions and 12 deletions

View File

@ -449,9 +449,9 @@ sub create_base {
}
sub clone_image {
my ($class, $scfg, $storeid, $volname, $vmid) = @_;
my ($class, $scfg, $storeid, $volname, $vmid, $snap) = @_;
my $snap = '__base__';
$snap ||= '__base__';
my ($vtype, $basename, $basevmid, undef, undef, $isBase) =
$class->parse_volname($volname);