lkml.org 
[lkml]   [1996]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectscsi kernel messages

Hello SCSI Linux Guys !.

I use the kernel "Detected scsi disk ...." messages to present
graphical information about the system disk configuration.

i found very useful that those messages says if the disk is
removable or not !

so here is a little patch to do this :

==========================cut here==================
--- sd.c.orig Wed Jul 3 17:24:16 1996
+++ sd.c Wed Jul 3 16:45:56 1996
@@ -1388,7 +1388,8 @@
static int sd_detect(Scsi_Device * SDp){
if(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;

- printk("Detected scsi disk sd%c at scsi%d, channel %d, id %d, lun %d\n",
+ printk("Detected scsi %sdisk sd%c at scsi%d, channel %d, id %d, lun %d\n",
+ SDp->removable ? "removable " : "",
'a'+ (sd_template.dev_noticed++),
SDp->host->host_no, SDp->channel, SDp->id, SDp->lun);

==========================cut here==================

===============================================================================
| _ | dan@lectra.fr |
| __/ _ _ o _ / /_) _ _ / _ | |
| (_/ (_(_ / ) ( (-' / /\ (_) (_ /) (-' | May the source be with |
| | you !! |
===============================================================================

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.024 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site