Make SCSI-system aware of type 12-devices

Make SCSI-system aware of type 12-devices

Post by Thomas Lang? » Tue, 17 Jul 2001 09:00:09



This small patch doesn't display "Unkown" when a type 12 device is found,
when scanning for scsi-devices on a scsi-chain. I also included the
declaration of TYPE_PRINTER which wasn't there. All theese types are
described in ftp://ftp.t10.org/t10/drafts/spc/spc-r11a.pdf page 51,
table 21.

--
-Thomas

diff -urN -X dontdiff linux-2.4.7-pre6/drivers/scsi/scsi.c linux-2.4.7-pre6_patched/drivers/scsi/scsi.c
--- linux-2.4.7-pre6/drivers/scsi/scsi.c        Tue Jun 12 20:06:54 2001

        "Communications   ",
        "Unknown          ",
        "Unknown          ",
-       "Unknown          ",
+       "Storage Array    ",
        "Enclosure        ",
 };

diff -urN -X dontdiff linux-2.4.7-pre6/include/scsi/scsi.h linux-2.4.7-pre6_patched/include/scsi/scsi.h
--- linux-2.4.7-pre6/include/scsi/scsi.h        Fri Apr 27 22:59:19 2001

 #define TYPE_DISK           0x00
 #define TYPE_TAPE           0x01
+#define TYPE_PRINTER        0x02
 #define TYPE_PROCESSOR      0x03    /* HP scanners use this */
 #define TYPE_WORM           0x04    /* Treated as ROM by our system */

                                     * - treated as TYPE_DISK */
 #define TYPE_MEDIUM_CHANGER 0x08
 #define TYPE_COMM           0x09    /* Communications device */
+#define TYPE_SACD           0x0c    /* Storage Array Controller Device, e.g. RAID */
 #define TYPE_ENCLOSURE      0x0d    /* Enclosure Services Device */
 #define TYPE_NO_LUN         0x7f
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Make SCSI-system aware of type 12-devices

Post by Pete Zaitce » Tue, 17 Jul 2001 09:30:08


Quote:> This small patch doesn't display "Unkown" when a type 12 device is found,
> when scanning for scsi-devices on a scsi-chain. I also included the
> declaration of TYPE_PRINTER which wasn't there. All theese types are
> described in ftp://ftp.t10.org/t10/drafts/spc/spc-r11a.pdf page 51,
> table 21.

Yeah, however nobody tried to implement SCC command class before.
It is much easier for a controller vendor to provide REPORT_LUNS
(which is enough to find volumes), and have some out-of-band
management interface - front panel, telnet, or a web form.
Out of curiousity, what is your hardware?

The patch looks ok.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Make SCSI-system aware of type 12-devices

Post by Thomas Lang? » Tue, 17 Jul 2001 09:40:08


Pete Zaitcev:

Quote:> Yeah, however nobody tried to implement SCC command class before.
> It is much easier for a controller vendor to provide REPORT_LUNS
> (which is enough to find volumes), and have some out-of-band
> management interface - front panel, telnet, or a web form.

This controller has a consolle which you can hook up to, to do management.

Quote:> Out of curiousity, what is your hardware?

Compaq StorageWorks (announced vendor is DEC, tho) HSG80.

--
-Thomas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. [2.5] kbuild-2.5 12/12: scsi stuff

kbuild-2.5 - scsi stuff

This stuff has grown by running script_asm.pl. It's free for
debate whether it's useful.

You shouldn't need this patch to build with kbuild-2.5.
If you have these scsi controllers, it might be useful to have.
There seems no point in patching this into the kernel without
applying the rest of kbuild-2.5.

This patch is available from
<URL:ftp://luckynet.dynu.com/pub/linux/kbuild-2.5/many-files/kbuild-2.5-sc...>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. s/key and ssh at the same time

3. type ahead problem in bash-1.12 & bash-1.13.4

4. Pro/ENGINEER FlexLM and LINUX

5. gcc 2.95.1 and system type - RH5.2, kernel 2.2.12

6. Manchester encoding

7. FIPS 12 and "Invalid media type reading drive D"

8. The beginning of ext2 partition is lost... help!

9. 2nd ALSA update [12/12] - 2002/10/01

10. s390 fixes (12/12).

11. Why do UMTS-links provide DNS Server 10.11.12.13 and 10.11.12.14?

12. () Pointer to Rec.Games.Computer.Doom FAQ (95/12/12)