]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85cbfdc018180dfbe7bb9c0aa1206e4e538240db
tree7a01681b8a361ba846506e349b85eff07948acd5
parent8918efabac2f2eaa5312221100a044418b8d7bc7
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