Comment 4 for bug 1355282

Revision history for this message
Daniel Manrique (roadmr) wrote :

Thanks.

Hey, this *is* being presented as a SCSI device :(

The PCI_CLASS value is :

E: PCI_CLASS=10000

After some processing I end up with:

(Pdb) class_id
1
(Pdb) subclass_id
0

If you look at checkbox_support/lib/pci.py, you'll see it has this:

    BASE_CLASS_STORAGE = 1
    CLASS_STORAGE_SCSI = 0

BASE_CLASS_STORAGE is compared against class_id, and then if it's storage (1), I look at subclass_id, comparing against CLASS_STORAGE_SCSI does tell me it's a SCSI device.

I'll look at other devices to see if any of them are the actual disk device but are being ignored for some reason; that seems a more likely cause (and one that won't require a horrible special-casing of SCSI detection). I'm looking at this one:

P: /devices/pci0000:00/0000:00:04.0/virtio1/block/vda
N: vda
E: DEVNAME=/dev/vda
E: DEVPATH=/devices/pci0000:00/0000:00:04.0/virtio1/block/vda
E: DEVTYPE=disk
E: ID_PART_TABLE_TYPE=gpt
E: MAJOR=253
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=8669

I'm having a bit of trouble comparing it to a known-good disk as the one I have is an SSD and looks *very* weird, but I'll try to compare to a good old rotary HD and see what I can discern.