OpenSolaris

Printable Version Enter a New Search
Bug ID 6701042
Synopsis megaraid_sas should use symbolic names rather than numbers
State 10-Fix Delivered (Fix available in build)
Category:Subcategory driver:megasas
Keywords commands.h | consistency | dropbear
Responsible Engineer Susan Scheufele
Reported Against s10u6_02
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_96
Fixed In snv_96
Release Fixed solaris_nevada(snv_96) , solaris_10u7(s10u7_02) (Bug ID:2167786)
Related Bugs 6651366 , 6699664 , 6708849
Submit Date 13-May-2008
Last Update Date 13-August-2008
Description
While examining some comments about a particular message related to MODE SENSE(6)
and MODE SENSE(10) messages, I discovered that megasas has inconsistent case statement
usage:


 3464		switch (pkt->pkt_cdbp[0]) {
  3465		    /* Mode sense */
  3466		case 0x15 : /* mode select(6) */
  3467		case 0x55 : /* mode select(10) */
  3468		case 0x1a : /* mode sense(6) */
  3469		case 0x5a : /* mode sense(10) */
  3470		case 0x5e : /* ??? */
  3471		case 0x4d : /* log sense */
  3472		case 0x35 : /* Synchronize Cache */
  3473			return_mfi_pkt(instance, cmd);
  3474			*cmd_done = 1;
  3475	
  3476			return (NULL);
  3477		case SCMD_READ:
  3478		case SCMD_WRITE:
  3479		case SCMD_READ_G1:
  3480		case SCMD_WRITE_G1:



Instead of using 0x15, 0x55... etc, the block of lines from 3466 to 3472 should use
the symbolic names used in the rest of the function, and used throughout the rest
of the kernel. We can also do without the /* which command is this? */ commentary.
Work Around
N/A
Comments
N/A