iscsiadm: fix discovery record management
commite5025aef77b9484e4bcb04b35aa54c061059e865
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 11 Jun 2010 11:56:33 +0000 (11 06:56 -0500)
committerMike Christie <michaelc@cs.wisc.edu>
Fri, 2 Jul 2010 01:49:45 +0000 (1 20:49 -0500)
tree68bcc43c82ee9fab74f3aa6c9d8ce00ad92c054b
parent3b415b25baf3e0f95a07562d0533ba89bd5a4694
iscsiadm: fix discovery record management

We recently added the ability to use and update discovery
records. when this was done, we had
iscsiadm -m discovery -t st -p ip:port
use the record value if found. This will break compat with
older releases and it is a little strange because
iscsiadm -m discovery -p ip:port [ -o ... | -l ]
works on or uses the discovery record.

So this patch reverts iscsiadm behavior so that
iscsiadm -m discovery -t st -p ip:port
uses the iscsid.conf settings, and adds a new --discover|-D
command that can be used to force discovery.

iscsiadm -m discovery -p ip:port --discover

will force discovery using the record with the ID ip:port.
README
doc/iscsiadm.8
usr/idbm.c
usr/iscsiadm.c