lkml.org 
[lkml]   [2001]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: /proc/stat and disk_io
From
On Sun, Dec 09, 2001 at 04:19:45PM -0000, James Stevenson wrote:
> from /proc/stat i get the following
>
> disk_io: (3,0):(167751,94458,3917566,73293,2420568)
> (3,1):(59314,45093,2747844,14221,114376)
> (11,0):(9855,9855,1258392,0,0)
>
> except the device 11,0 is a cd-reader
> and there is a device 11,1 which has been used
> is there any reson why the stats dont show up ?
> after all it is another disk.

Both cdroms are accounted, but only into the same slot (11,0). In function
disk_index() at the end of include/linux/genhd.h, you can add a line
case SCSI_CDROM_MAJOR:
above the line containing SCSI_DISK0_MAJOR, and things will work as expected.
Several more complete patches have been floating around for a while.

Regards,

Daniel.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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