[pve-devel] r5301 - in pve-storage/pve2: . PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Nov 8 11:50:44 CET 2010


Author: dietmar
Date: 2010-11-08 10:50:44 +0000 (Mon, 08 Nov 2010)
New Revision: 5301

Modified:
   pve-storage/pve2/ChangeLog
   pve-storage/pve2/PVE/Storage.pm
Log:
	* PVE/Storage.pm: moved hostname read/write to INotify.pm



Modified: pve-storage/pve2/ChangeLog
===================================================================
--- pve-storage/pve2/ChangeLog	2010-11-08 10:49:39 UTC (rev 5300)
+++ pve-storage/pve2/ChangeLog	2010-11-08 10:50:44 UTC (rev 5301)
@@ -1,3 +1,7 @@
+2010-11-08  Proxmox Support Team  <support at proxmox.com>
+
+	* PVE/Storage.pm: moved hostname read/write to INotify.pm
+
 2010-09-14  Proxmox Support Team  <support at proxmox.com>
 
 	* pvesm: add/use 'verifyapi' command

Modified: pve-storage/pve2/PVE/Storage.pm
===================================================================
--- pve-storage/pve2/PVE/Storage.pm	2010-11-08 10:49:39 UTC (rev 5300)
+++ pve-storage/pve2/PVE/Storage.pm	2010-11-08 10:50:44 UTC (rev 5301)
@@ -31,10 +31,6 @@
 
 # we need the cluster configuration for locking operations
 
-register_file ('hostname', "/etc/hostname",  
-	       \&read_etc_hostname, 
-	       \&write_etc_hostname);
-
 register_file ('clustercfg', "/etc/pve/cluster.cfg", 
 	       \&read_cluster_config);
 
@@ -42,24 +38,6 @@
 	       \&parse_config, \&write_config, undef,
 	       always_call_parser => 1); 
 
-sub read_etc_hostname {
-    my ($filename, $fd) = @_;
-
-    my $hostname = <$fd>;
-
-    chomp $hostname;
-
-    return $hostname;
-}
-
-sub write_etc_hostname {
-    my ($filename, $fh, $hostname) = @_;
-
-    print $fh "$hostname\n";
-
-    return $hostname;
-}
-
 sub read_cluster_config {
     my ($filename, $fh) = @_;
 




More information about the pve-devel mailing list