]> git.proxmox.com Git - pve-storage.git/commitdiff
tree-wide: fix typos with codespell
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 06:07:20 +0000 (08:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 06:28:48 +0000 (08:28 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
13 files changed:
PVE/API2/Storage/Content.pm
PVE/CephConfig.pm
PVE/Diskmanage.pm
PVE/Storage.pm
PVE/Storage/CephFSPlugin.pm
PVE/Storage/GlusterfsPlugin.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/LunCmd/LIO.pm
PVE/Storage/LvmThinPlugin.pm
PVE/Storage/PBSPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/ZFSPlugin.pm
test/get_subdir_test.pm

index f8664af72fb5dd55d20977c3907c10a3bab8ed68..4da69343674f5d5c75348c4033f3dc5af1bf7063 100644 (file)
@@ -238,7 +238,7 @@ my $real_volume_id = sub {
        raise_param_exc({ volume => $@ }) if $@;
 
     } else {
-       raise_param_exc({ volume => "no storage speficied - incomplete volume ID" })
+       raise_param_exc({ volume => "no storage specified - incomplete volume ID" })
            if !$storeid;
 
        $volid = "$storeid:$volume";
@@ -435,7 +435,7 @@ __PACKAGE__->register_method ({
            if ($vtype eq 'backup'
                && $path =~ /(.*\/vzdump-\w+-\d+-\d{4}_\d{2}_\d{2}-\d{2}_\d{2}_\d{2})[^\/]+$/) {
                my $logpath = "$1.log";
-               # try to cleanup our backup log file too, if still exisiting, #318
+               # try to cleanup our backup log file too, if still existing, #318
                unlink($logpath) if -e $logpath;
            }
        };
@@ -513,7 +513,7 @@ __PACKAGE__->register_method ({
 
        # do all parameter checks first
 
-       # then do all short running task (to raise errors befor we go to background)
+       # then do all short running task (to raise errors before we go to background)
 
        # then start the worker task
        my $worker = sub  {
index 078477e49b4d30018bd169fa94e5b640240cc47a..83d72fce94b6aa3507b8e3ab245638ef1f431d5f 100644 (file)
@@ -123,7 +123,7 @@ sub get_monaddr_list {
 
     my $monhostlist = {};
 
-    # get all ip adresses from mon_host
+    # get all ip addresses from mon_host
     my $monhosts = [ split (/[ ,;]+/, $config->{global}->{mon_host} // "") ];
 
     foreach my $monhost (@$monhosts) {
index ca6f0b7bc5dc9cd5172bd3ba8de0bd967f852f8d..10e12184298051d670def31b610cacce83992fa8 100644 (file)
@@ -251,7 +251,7 @@ sub get_lvm_devices {
     };
 
     # if something goes wrong, we do not want
-    # to give up, but indicate an error has occured
+    # to give up, but indicate an error has occurred
     warn "$@\n" if $@;
 
     my $uuids = {
@@ -794,7 +794,7 @@ sub get_blockdev {
     die "No valid block device\n" if index($dev, $block_dev) == -1;
 
     $block_dev = "/dev/$block_dev";
-    die "Block device does not exsists\n" if !(-b $block_dev);
+    die "Block device does not exists\n" if !(-b $block_dev);
 
     return $block_dev;
 }
@@ -836,7 +836,7 @@ sub append_partition {
 
     my $partition;
 
-    # loop again to detect the real partiton device which does not always follow
+    # loop again to detect the real partition device which does not always follow
     # a strict $devname$partition scheme like /dev/nvme0n1 -> /dev/nvme0n1p1
     dir_glob_foreach("/sys/block/$devname", qr/\Q$devname\E.*$newpartid/, sub {
        my ($part) = @_;
index ea887a496ab62d3fbd54fb61dd6641ef3d436e41..ace3340179327a252c266c71a52e4c9f463653f1 100755 (executable)
@@ -190,7 +190,7 @@ sub storage_check_enabled {
 
 # storage_can_replicate:
 # return true if storage supports replication
-# (volumes alocated with vdisk_alloc() has replication feature)
+# (volumes allocated with vdisk_alloc() has replication feature)
 sub storage_can_replicate {
     my ($cfg, $storeid, $format) = @_;
 
@@ -1846,7 +1846,7 @@ sub get_bandwidth_limit {
     my ($operation, $storage_list, $override) = @_;
 
     # called for each limit (global, per-storage) with the 'default' and the
-    # $operation limit and should udpate $override for every limit affecting
+    # $operation limit and should update $override for every limit affecting
     # us.
     my $use_global_limits = 0;
     my $apply_limit = sub {
index f919ab82cd2cb0413a2e662bfe7aaa18d54231d2..2aaa45083be54f944566667b8950cf7c342355db 100644 (file)
@@ -44,7 +44,7 @@ sub systemd_netmount {
 
 # don't do default deps, systemd v241 generator produces ordering deps on both
 # local-fs(-pre) and remote-fs(-pre) targets if we use the required _netdev
-# option. Over thre corners this gets us an ordering cycle on shutdown, which
+# option. Over three corners this gets us an ordering cycle on shutdown, which
 # may make shutdown hang if the random cycle breaking hits the "wrong" unit to
 # delete.
     my $unit =  <<"EOF";
index 599bca29cd6551e6ded23607d58084355b414c42..ea4df82a9682f949c74ac4445632d8256c9d60b1 100644 (file)
@@ -197,7 +197,7 @@ sub path {
 sub clone_image {
     my ($class, $scfg, $storeid, $volname, $vmid, $snap) = @_;
 
-    die "storage definintion has no path\n" if !$scfg->{path};
+    die "storage definition has no path\n" if !$scfg->{path};
 
     my ($vtype, $basename, $basevmid, undef, undef, $isBase, $format) =
        $class->parse_volname($volname);
index b85fb89ac287915d7c0b67d0b652b962ee659425..fb4acdb47d17900dc685e4777ff4fb6cff3b541f 100644 (file)
@@ -344,7 +344,7 @@ sub alloc_image {
 
     die "unsupported format '$fmt'" if $fmt ne 'raw';
 
-    die "illegal name '$name' - sould be 'vm-$vmid-*'\n"
+    die "illegal name '$name' - should be 'vm-$vmid-*'\n"
        if  $name && $name !~ m/^vm-$vmid-/;
 
     my $vgs = lvm_vgs();
index b98edc283a0fdf4d431daf043e685f5f5f325331..9264e468b121a562c28ee9328164105028fd4eee 100644 (file)
@@ -358,7 +358,7 @@ my $delete_lun = sub {
        # step 3: save to be safe ...
        $execute_remote_command->($scfg, $timeout, $targetcli, 'saveconfig');
 
-       # update interal cache
+       # update internal cache
        $free_lu_name->($scfg, $volname);
 
        last;
index c9e127ce0cb5a170f991f8704dc3a9660c54e977..4ba6f901d89f047157b59ac0c799d1b6e37d7773 100644 (file)
@@ -86,7 +86,7 @@ sub alloc_image {
 
     die "unsupported format '$fmt'" if $fmt ne 'raw';
 
-    die "illegal name '$name' - sould be 'vm-$vmid-*'\n"
+    die "illegal name '$name' - should be 'vm-$vmid-*'\n"
        if  $name && $name !~ m/^vm-$vmid-/;
 
     my $vgs = PVE::Storage::LVMPlugin::lvm_vgs();
index a439dd29a66c20fe1f02c11bb36b84cc6fdbf86d..abc6a0266c8b12f705b0f3d6892a01f319c0540a 100644 (file)
@@ -565,7 +565,7 @@ sub path {
 
     my $repo = PVE::PBSClient::get_repository($scfg);
 
-    # artifical url - we currently do not use that anywhere
+    # artificial url - we currently do not use that anywhere
     my $path = "pbs://$repo/$name";
 
     return ($path, $vmid, $vtype);
@@ -758,7 +758,7 @@ sub activate_storage {
        }
     }
 
-    die "$storeid: Cannot find datastore '$datastore', check permissions and existance!\n";
+    die "$storeid: Cannot find datastore '$datastore', check permissions and existence!\n";
 }
 
 sub deactivate_storage {
index d330845fd1622fbe0347b540be1666f24f7074fd..15bf91624724bd136c19f36850431f06c5734013 100644 (file)
@@ -134,7 +134,7 @@ my $defaultData = {
        },
        maxfiles => {
            description => "Deprecated: use 'prune-backups' instead. " .
-               "Maximal number of backup files per VM. Use '0' for unlimted.",
+               "Maximal number of backup files per VM. Use '0' for unlimited.",
            type => 'integer',
            minimum => 0,
            optional => 1,
@@ -445,7 +445,7 @@ sub parse_config {
 # Storage implementation
 
 # called during addition of storage (before the new storage config got written)
-# die to abort additon if there are (grave) problems
+# die to abort addition if there are (grave) problems
 # NOTE: runs in a storage config *locked* context
 sub on_add_hook {
     my ($class, $storeid, $scfg, %param) = @_;
@@ -553,7 +553,7 @@ sub get_subdir {
 
     my $path = $scfg->{path};
 
-    die "storage definintion has no path\n" if !$path;
+    die "storage definition has no path\n" if !$path;
 
     my $subdir = $vtype_subdirs->{$vtype};
 
@@ -689,7 +689,7 @@ sub clone_image {
     my ($class, $scfg, $storeid, $volname, $vmid, $snap) = @_;
 
     # this only works for file based storage types
-    die "storage definintion has no path\n" if !$scfg->{path};
+    die "storage definition has no path\n" if !$scfg->{path};
 
     my ($vtype, $basename, $basevmid, undef, undef, $isBase, $format) =
        $class->parse_volname($volname);
@@ -1142,7 +1142,7 @@ sub status {
 
     my $path = $scfg->{path};
 
-    die "storage definintion has no path\n" if !$path;
+    die "storage definition has no path\n" if !$path;
 
     my $timeout = 2;
     my $res = PVE::Tools::df($path, $timeout);
@@ -1166,7 +1166,7 @@ sub activate_storage {
 
     my $path = $scfg->{path};
 
-    die "storage definintion has no path\n" if !$path;
+    die "storage definition has no path\n" if !$path;
 
     # this path test may hang indefinitely on unresponsive mounts
     my $timeout = 2;
index 63b95517adad6a544bd15ba1d06328e1fcf9119a..5b84d85f2efca5f1d96fe003d47c21bd415857eb 100644 (file)
@@ -293,7 +293,7 @@ sub alloc_image {
     
     die "unsupported format '$fmt'" if $fmt ne 'raw';
 
-    die "illegal name '$name' - sould be 'vm-$vmid-*'\n"
+    die "illegal name '$name' - should be 'vm-$vmid-*'\n"
     if $name && $name !~ m/^vm-$vmid-/;
 
     my $volname = $name;
index 576c4757c4db9949d81fb9a7673c1df053eae530..1e583504567138c306eef584504d7f59eb9e3365 100644 (file)
@@ -18,7 +18,7 @@ my $vtype_subdirs = PVE::Storage::Plugin::get_vtype_subdirs();
 my $tests = [
     # failed matches
     [ $scfg_with_path, 'none', "unknown vtype 'none'\n" ],
-    [ {}, 'iso', "storage definintion has no path\n" ],
+    [ {}, 'iso', "storage definition has no path\n" ],
 ];
 
 # creates additional positive tests