Bug 195585

Summary: iscsictl -R -n <nickname> always removes all active sessions
Product: Base System Reporter: Martin Birgmeier <d8zNeCFG>
Component: binAssignee: Edward Tomasz Napierala <trasz>
Status: Closed FIXED    
Severity: Affects Only Me CC: trasz
Priority: ---    
Version: 10.1-RELEASE   
Hardware: Any   
OS: Any   

Description Martin Birgmeier 2014-12-02 21:04:55 UTC
Scenario:
- The server exports multiple iscsi targets (mapped to zvols)
- The client has a configuration file with nicknames for these targets
- Doing...

# iscsictl -A -n target1
# iscsictl -A -n target2
# iscsictl -L
Target name                          Target portal    State
iqn.1995-06.server:target1           server           Connected: da0
iqn.1995-06.server:target2           server           Connected: da1
# iscsictl -R -n target2
# iscsictl -L
Target name                          Target portal    State
#

... removes all sessions instead of just the one for "target2".
Comment 1 Edward Tomasz Napierala freebsd_committer freebsd_triage 2014-12-03 10:20:09 UTC
This should be fixed in 10-STABLE, as r274546.  Could you upgrade and see if it's fixed?  Thanks!
Comment 2 Martin Birgmeier 2014-12-03 18:39:43 UTC
I backported r274546 to releng/10.1 and can confirm that the issue is fixed.

Thank you!

-- Martin