atop doesn't show virtio disks

Bug #1010564 reported by Hark on 2012-06-08
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
atop (Ubuntu)
Undecided
Unassigned

Bug Description

When running in a virtual machine, virtio disks like /dev/vda are not shown in atop. Please also see Debian bug 640527

Hark (ubuntu-komkommerkom) wrote :

I am not a C coder, but I think adding a line to the validdisk[] array in photosyst.c should solve the problem. It is now

validdisk[] = {
        { "^ram[0-9][0-9]*$", {0}, (void *)0, NONTYPE, },
        { "^loop[0-9][0-9]*$", {0}, (void *)0, NONTYPE, },
        { "^sd[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "^dm-[0-9][0-9]*$", {0}, lvmmapname, LVMTYPE, },
        { "^md[0-9][0-9]*$", {0}, nullmodname, MDDTYPE, },
        { "^hd[a-z]$", {0}, nullmodname, DSKTYPE, },
        { "^rd/c[0-9][0-9]*d[0-9][0-9]*$", {0}, nullmodname, DSKTYPE, },
        { "^cciss/c[0-9][0-9]*d[0-9][0-9]*$", {0}, nullmodname, DSKTYPE, },
        { "^fio[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "/host.*/bus.*/target.*/lun.*/disc", {0}, abbrevname1, DSKTYPE, },
        { "^xvd[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "^dasd[a-z][a-z]*$", {0}, nullmodname, DSKTYPE, },
        { "^mmcblk[0-9][0-9]*$", {0}, nullmodname, DSKTYPE, },
};

As you can see there is no line for ^vd[a-z] block devices.

Hark (ubuntu-komkommerkom) wrote :

This has been fixed in version 1.27. Debian fixed it in version 1.26-2 (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640527). It would be great if the Ubuntu team can also fix this bug for Precise.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in atop (Ubuntu):
status: New → Confirmed
ghomem (gustavo) wrote :

I confirm this.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.