target: REPORT LUNS should return LUN 0 even for dynamic ACLs
authorRoland Dreier <roland@purestorage.com>
Fri, 24 Jul 2015 19:11:46 +0000 (12:11 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 3 Aug 2015 05:12:18 +0000 (22:12 -0700)
commit9c395170a559d3b23dad100b01fc4a89d661c698
tree7a01681b8a361ba846506e349b85eff07948acd5
parent9547308bda296b6f69876c840a0291fcfbeddbb8
target: REPORT LUNS should return LUN 0 even for dynamic ACLs

If an initiator doesn't have any real LUNs assigned, we should report
LUN 0 and a LUN list length of 1.  Some versions of Solaris at least
go beserk if we report a LUN list length of 0.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: <stable@vger.kernel.org> # v3.1+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_spc.c