Messages in this thread | | | Date | Sun, 9 Dec 2001 19:05:57 +0100 | Subject | Re: /proc/stat and disk_io | From | Daniel Kobras <> |
| |
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/
| |