hi again, Bill: is this sorting really needed? it seems like di works just nicely over here without the special sorting (Linux 2.6):
> [EMAIL PROTECTED]:~/qa/packages/di-4.10.dfsg.1$ ./di -sn -t > Filesystem Mount Megs Used Avail %Used fs Type > /dev/sda1 / 176.4 174.5 0.0 100% ext3 > [..] > Total 387308.4 262551.4 117024.0 70% > > [EMAIL PROTECTED]:~/qa/packages/di-4.10.dfsg.1$ ./di -ss -t > Filesystem Mount Megs Used Avail %Used fs Type > /dev/mapper/data-m /data 94867.7 49141.6 40907.1 57% ext3 > [..] > Total 387308.4 262551.4 117024.0 70% patch is attached. bye, - michael
--- di.c.orig 2007-05-29 12:41:36.000000000 +0200 +++ di.c 2007-05-29 12:41:54.000000000 +0200 @@ -711,13 +711,6 @@ if ((flags & DI_F_TOTAL) == DI_F_TOTAL && (flags & DI_F_NO_HEADER) != DI_F_NO_HEADER) { - /* in order to find the main pool entry, */ - /* we must have the array sorted by special device name */ - tempSortType = sortType; - sortType = DI_SORT_SPECIAL; - sortArray ((char *) diskInfo, sizeof (di_DiskInfo), diCount, diCompare); - sortType = tempSortType; - for (i = 0; i < diCount; ++i) { int ispooled = { 0 };