Bug 194032

Summary: iscsictl does not parse globals in /etc/iscsi.conf
Product: Base System Reporter: Benjamin Lutz <mail>
Component: binAssignee: Edward Tomasz Napierala <trasz>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: emaste, trasz
Priority: ---    
Version: 10.0-STABLE   
Hardware: Any   
OS: Any   

Description Benjamin Lutz 2014-09-30 09:38:50 UTC
iscsictl does not parse global variables in /etc/iscsi.conf, any such variable causes an error. For example, after copying the config file from the EXAMPLE section of iscsi.conf(5) to /etc/iscsi.conf:

# iscsictl -Aa
iscsictl: error in configuration file at line 4 near 'port': syntax error
#

Looking at http://svnweb.freebsd.org/base/stable/10/usr.bin/iscsictl/parse.y?revision=262841&view=markup, it would appear that the parser has no rules for parsing global variables.
Comment 1 Edward Tomasz Napierala freebsd_committer freebsd_triage 2015-04-10 13:15:27 UTC
I gave it some thought, and adding that functionality would require quite substantial changes to the parser.  Given it's not much of a problem to change the config file, and iscontrol is already obsolete...  I just fixed the iscsi.conf manual page to not mention globals.