5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-03-23 10:50:27 +03:00

add parser for /etc/iscsi/initiatorname.iscsi

This commit is contained in:
Dietmar Maurer 2013-02-13 12:49:59 +01:00
parent bd8002ddcd
commit ddd3d22425
2 changed files with 18 additions and 0 deletions

View File

@ -957,4 +957,20 @@ register_file('interfaces', "/etc/network/interfaces",
\&read_etc_network_interfaces,
\&write_etc_network_interfaces);
sub read_iscsi_initiatorname {
my ($filename, $fd) = @_;
while (defined(my $line = <$fd>)) {
if ($line =~ m/^InitiatorName=(\S+)$/) {
return $1;
}
}
return 'undefined';
}
register_file('initiatorname', "/etc/iscsi/initiatorname.iscsi",
\&read_iscsi_initiatorname);
1;

2
debian/changelog vendored
View File

@ -1,6 +1,8 @@
libpve-common-perl (1.0-46) unstable; urgency=low
* revert vlan changes
* add parser for /etc/iscsi/initiatorname.iscsi
-- Proxmox Support Team <support@proxmox.com> Wed, 13 Feb 2013 10:57:20 +0100