All of lore.kernel.org
 help / color / mirror / Atom feed
* [CARE]: number of LUNS from REPORT LUNS data report and macros
@ 2002-08-27  0:49 Luben Tuikov
  2002-08-27  1:10 ` Patrick Mansfield
  0 siblings, 1 reply; 3+ messages in thread
From: Luben Tuikov @ 2002-08-27  0:49 UTC (permalink / raw)
  To: linux-scsi

Two issues here.

Firstly, I don't think that one can quite do
``num_luns = (length / sizeof(ScsiLun));'' in scsi_scan.c.

The reason is that we should keep clear separation of what/how
the kernel represents some standard/drafts data and how it comes
from the device. I.e. one wouldn't assume (one step further) that
_also_ the byte ordering is the same in the report data and in ScsiLun,
i.e.  (ScsiLun *)(data+i*sizeof(ScsiLun)) ... not!

A SCSI LUN should be represented by ``u64''. Futhermore, only
a LLDD should poplulate such a variable (as outlined in another email)
directly or indirectly (though REPORT LUNS data).

Secondly, please get rid of the big
#ifdef CONFIG_SCSI_REPORT_LUNS in scsi_scan.c.
Linus has made this a point numerous times.

Lets keep this great subsystem great!

(Those issues should naturally go away once u64 LUN is adopted.)

-- 
Luben

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-29 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-27  0:49 [CARE]: number of LUNS from REPORT LUNS data report and macros Luben Tuikov
2002-08-27  1:10 ` Patrick Mansfield
2002-08-29 18:54   ` Luben Tuikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.