Re: [PATCH] target: respond to unknown initiators with sensible REPORT LUNS list length

2015-07-23 Thread Christoph Hellwig
On Wed, Jul 22, 2015 at 03:08:17PM -0700, Spencer Baugh wrote: > done: > + /* > + * If no real LUNs are accessible, report an allocation length > + * of 1 LUN to account for virtual LUN 0. > + */ > + if (lun_count == 0) > + lun_count = 1; > + Shouldn't the code

[PATCH] target: respond to unknown initiators with sensible REPORT LUNS list length

2015-07-22 Thread Spencer Baugh
From: Roland Dreier Solaris seems to go beserk if we respond to REPORT LUNS with a LUN LIST LENGTH of 0. Signed-off-by: Roland Dreier Signed-off-by: Spencer Baugh --- drivers/target/target_core_spc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/target/target_core_spc.c b