tags 736628 help
tags 736628 upstream
On Mon, Jan 27, 2014 at 09:08:56AM -0800, Daniel Schepler wrote:
> (gdb) p disks
> $1 = (struct disk_stat **) 0x7fffffffeb08
> (gdb) p *disks
> $2 = (struct disk_stat *) 0x0
> (gdb) p cDisk
The problem seems to be that a partition is found before the disk
appears. More specifically, the partition needs to be before *any*
disk. (A different but related bug is that the library assumes
all partitions appear immediately after the disk line).

So: sda, sda1, sda2 = ok
    sda1,sda2,sda = crash
    sr0, sda1, sda2 = ok, but sda1 is "linked" to sr0

The problem now is, under what conditions do these odd
/proc/diskstats occur and what interpretation should
vmstat make of the situation? Ignore the partitions?
Raise an error? re-map the disk->partition links
after reading the file?

 - Craig

-- 
Craig Small (@smallsees)   http://enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux           http://www.debian.org/   csmall at : debian.org
GPG fingerprint:        5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to