9 Dec
2004
9 Dec
'04
09:48
Hi, I am trying to run my program on SLES9 IA32 which compiled on SLES8 IA32. In SLES8, to get disk statitistics i have used /proc/partitions file, but 2.5 kernel onwards, disk stats are in /proc/diskstats. I don't want to compile on SLES9 Is there any common way where I can get disk stats on both SLES8 and SLES9 I know one way is to check for /proc/diskstats and then decide which way to go. But Is there any Ioctl to get this stats ? Thanks