Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
my $verify_params = [qw(path)];
if ($param->{add_storage}) {
my $verify_params = [qw(path)];
if ($param->{add_storage}) {
+ # reserve the name and add as disabled, will be enabled below if creation works out
PVE::API2::Storage::Config->create_or_update(
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- 1,
- );
+ $name, $node, $storage_params, $verify_params, 1);
}
my $mounted = PVE::Diskmanage::mounted_paths();
}
my $mounted = PVE::Diskmanage::mounted_paths();
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- );
+ $name, $node, $storage_params, $verify_params);
my $verify_params = [qw(vgname)];
if ($param->{add_storage}) {
my $verify_params = [qw(vgname)];
if ($param->{add_storage}) {
+ # reserve the name and add as disabled, will be enabled below if creation works out
PVE::API2::Storage::Config->create_or_update(
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- 1,
- );
+ $name, $node, $storage_params, $verify_params, 1);
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- );
+ $name, $node, $storage_params, $verify_params);
my $verify_params = [qw(vgname thinpool)];
if ($param->{add_storage}) {
my $verify_params = [qw(vgname thinpool)];
if ($param->{add_storage}) {
+ # reserve the name and add as disabled, will be enabled below if creation works out
PVE::API2::Storage::Config->create_or_update(
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- 1,
- );
+ $name, $node, $storage_params, $verify_params, 1);
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- );
+ $name, $node, $storage_params, $verify_params);
my $verify_params = [qw(pool)];
if ($param->{add_storage}) {
my $verify_params = [qw(pool)];
if ($param->{add_storage}) {
+ # reserve the name and add as disabled, will be enabled below if creation works out
PVE::API2::Storage::Config->create_or_update(
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- 1,
- );
+ $name, $node, $storage_params, $verify_params, 1);
}
my $pools = get_pool_data();
}
my $pools = get_pool_data();
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
if ($param->{add_storage}) {
PVE::API2::Storage::Config->create_or_update(
- $name,
- $node,
- $storage_params,
- $verify_params,
- );
+ $name, $node, $storage_params, $verify_params);