[pve-devel] [PATCH pve-manager] fix typo in CephTools: epmty to empty

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Sep 8 11:30:41 CEST 2015


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/CephTools.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/CephTools.pm b/PVE/CephTools.pm
index 187c5b0..68bf175 100644
--- a/PVE/CephTools.pm
+++ b/PVE/CephTools.pm
@@ -216,7 +216,7 @@ sub list_disks {
 	return $mounted->{$dev};
     };
 
-    my $dir_is_epmty = sub {
+    my $dir_is_empty = sub {
 	my ($dir) = @_;
 
 	my $dh = IO::Dir->new ($dir);
@@ -288,7 +288,7 @@ sub list_disks {
 
 	my $used;
 
-	$used = 'LVM' if !&$dir_is_epmty("/sys/block/$dev/holders");
+	$used = 'LVM' if !&$dir_is_empty("/sys/block/$dev/holders");
 
 	$used = 'mounted' if &$dev_is_mounted("/dev/$dev");
 
@@ -319,7 +319,7 @@ sub list_disks {
 		    $osdid = $1;
 		} 
 	    }
-	    if (!&$dir_is_epmty("/sys/block/$dev/$part/holders"))  {
+	    if (!&$dir_is_empty("/sys/block/$dev/$part/holders"))  {
 		$found_lvm = 1;
 	    }
 	    $journal_count++ if $journalhash->{"/dev/$part"};
-- 
2.1.4




More information about the pve-devel mailing list