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:
parent
bd8002ddcd
commit
ddd3d22425
@ -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
2
debian/changelog
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user