Re: Question about /proc/ide

Guest section DW (dwguest@win.tue.nl)
Thu, 14 Oct 1999 18:28:38 +0200 (MET DST)


From: tenthumbs <10@dhyp2-158.cybernex.net>

While trying to track down some problems with my old i486 dropping ppp
packets, I ran into some anomalies with /proc/ide.

I have 4 IDE drives and I noticed that /proc/hd[ac]/geometry reports a
negative physical cylinder count while /proc/hd[bd]/geometry reports
positive values. The logical geometries are correct. Is this a problem?

No.
The patch below will make them positive again, I suppose.
(this is on /usr/src/linux/drivers/block/ide-proc.c or so)

--- ide-proc.c~ Wed May 6 23:42:53 1998
+++ ide-proc.c Thu Oct 14 18:18:31 1999
@@ -516,8 +516,10 @@
char *out = page;
int len;

- out += sprintf(out,"physical %hi/%hi/%hi\n", drive->cyl, drive->head, drive->sect);
- out += sprintf(out,"logical %hi/%hi/%hi\n", drive->bios_cyl, drive->bios_head, drive->bios_sect);
+ out += sprintf(out,"physical %d/%d/%d\n",
+ drive->cyl, drive->head, drive->sect);
+ out += sprintf(out,"logical %d/%d/%d\n",
+ drive->bios_cyl, drive->bios_head, drive->bios_sect);
len = out - page;
PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/