Hello, Attached is a patch to dynamically allocate the data buffers for the disk statistics, and to extend the gathering of disk statistics to include major numbers greater than 15. A disk statistics structure is allocated when a new block device is registered. A global array (kstat.dkdrive_info[]) is used to hold the address of the statistics structures for all block devices. The disk statistics lookup is the same as before: indexed by the major number and the disk number. Note that this patch includes the changes of function disk_index() in genhd.h from linux-2.4.10-ac kernel, in order to make the disk index lookup work for more disks. This patch is against 2.4.14 kernel and has been tested. I greatly appreciate any feedback from you. Please take a look and cc you comments to me. Have a good day. -- Mingming Cao IBM Linux Technology Center 503-578-5024 IBM T/L: 775-5024 cmm@us.ibm.com http://www.ibm.com/linux/ltc