Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
eval { run_command($cmd, %args); };
if (my $err = $@) {
die $errmsg . $lasterr if length($lasterr);
eval { run_command($cmd, %args); };
if (my $err = $@) {
die $errmsg . $lasterr if length($lasterr);
description => "Pool.",
type => 'string',
},
description => "Pool.",
type => 'string',
},
description => "RBD Namespace.",
type => 'string',
},
description => "RBD Namespace.",
type => 'string',
},
}
sub volume_snapshot_needs_fsfreeze {
}
sub volume_snapshot_needs_fsfreeze {
sparseinit => { base => 1, current => 1},
};
sparseinit => { base => 1, current => 1},
};
- my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
- $class->parse_volname($volname);
+ my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) = $class->parse_volname($volname);
- }else{
- $key = $isBase ? 'base' : 'current';
+ } else {
+ $key = $isBase ? 'base' : 'current';
}
return 1 if $features->{$feature}->{$key};
}
return 1 if $features->{$feature}->{$key};