[lkml]   [2001]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject/proc/stat missing disk_io info
Hi all,

I was wondering why some of my disks don't show up in /proc/stat's disk_io
line. Specifically, my line says:

disk_io: (2,0):(144,144,288,0,0) (3,0):(35,35,140,0,0)

This equates to my floppy and first cdrom. I also have a second cdrom (RW)
and 2 hard disks. Looking at the code (kstat_read_proc in
fs/proc/proc_misc.c) it is looping only up to DK_MAX_MAJOR which is defined
as 16 in kernel_stat.h. The problem is that my 2 HDs have a major number of

I don't know enough to produce a patch, that is, what should DK_MAX_MAJOR be
set to, but I believe the above is the problem.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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