rbd && zfs : create_base : remove $running param from volume_snapshot
template guests are never running and never write to their disks/mountpoints, those $running parameters there can be dropped. Signed-off-by: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
83cccdcdea
commit
73bfe226d6
@ -630,9 +630,7 @@ sub create_base {
|
||||
eval { $class->unmap_volume($storeid, $scfg, $volname); };
|
||||
warn $@ if $@;
|
||||
|
||||
my $running = undef; #fixme : is create_base always offline ?
|
||||
|
||||
$class->volume_snapshot($scfg, $storeid, $newname, $snap, $running);
|
||||
$class->volume_snapshot($scfg, $storeid, $newname, $snap);
|
||||
|
||||
my (undef, undef, undef, $protected) = rbd_volume_info($scfg, $storeid, $newname, $snap);
|
||||
|
||||
|
||||
@ -335,9 +335,7 @@ sub create_base {
|
||||
my $guid = $class->zfs_create_lu($scfg, $newname);
|
||||
$class->zfs_add_lun_mapping_entry($scfg, $newname, $guid);
|
||||
|
||||
my $running = undef; #fixme : is create_base always offline ?
|
||||
|
||||
$class->volume_snapshot($scfg, $storeid, $newname, $snap, $running);
|
||||
$class->volume_snapshot($scfg, $storeid, $newname, $snap);
|
||||
|
||||
return $newvolname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user