patch-1.3.43 linux/drivers/scsi/sg.c

Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/scsi/seagate.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.42/linux/drivers/scsi/sg.c linux/drivers/scsi/sg.c
@@ -509,7 +509,19 @@
 
 
 static int sg_detect(Scsi_Device * SDp){
-    ++sg_template.dev_noticed;
+
+    switch (SDp->type) {
+	case TYPE_DISK:
+	case TYPE_MOD:
+	case TYPE_ROM:
+	case TYPE_WORM:
+	case TYPE_TAPE: break;
+	default: 
+	printk("Detected scsi generic sg%c at scsi%d, channel %d, id %d, lun %d\n",
+           'a'+sg_template.dev_noticed,
+           SDp->host->host_no, SDp->channel, SDp->id, SDp->lun);
+    }
+    sg_template.dev_noticed++;
     return 1;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this