Fix typo in sub s/krdb_feature_disable/krbd_feature_disable

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2018-03-02 12:03:47 +01:00
committed by Fabian Grünbichler
parent 4c3b308583
commit 6ea1a3f3fe

View File

@ -91,7 +91,7 @@ my $rados_cmd = sub {
}; };
# needed for volumes created using ceph jewel (or higher) # needed for volumes created using ceph jewel (or higher)
my $krdb_feature_disable = sub { my $krbd_feature_disable = sub {
my ($scfg, $storeid, $name) = @_; my ($scfg, $storeid, $name) = @_;
return 1 if !$scfg->{krbd}; return 1 if !$scfg->{krbd};
@ -449,7 +449,7 @@ sub clone_image {
run_rbd_command($cmd, errmsg => "rbd clone '$basename' error"); run_rbd_command($cmd, errmsg => "rbd clone '$basename' error");
&$krdb_feature_disable($scfg, $storeid, $name); &$krbd_feature_disable($scfg, $storeid, $name);
return $newvol; return $newvol;
} }
@ -466,7 +466,7 @@ sub alloc_image {
my $cmd = &$rbd_cmd($scfg, $storeid, 'create', '--image-format' , 2, '--size', int(($size+1023)/1024), $name); my $cmd = &$rbd_cmd($scfg, $storeid, 'create', '--image-format' , 2, '--size', int(($size+1023)/1024), $name);
run_rbd_command($cmd, errmsg => "rbd create $name' error"); run_rbd_command($cmd, errmsg => "rbd create $name' error");
&$krdb_feature_disable($scfg, $storeid, $name); &$krbd_feature_disable($scfg, $storeid, $name);
return $name; return $name;
} }