Re: [RFC Patch] virtio: export model and type in /sys

From: Christoph Hellwig
Date: Tue Feb 01 2011 - 12:56:15 EST


On Tue, Feb 01, 2011 at 07:46:07PM +0200, Michael S. Tsirkin wrote:
> ide seems to export these too.
>
> $ cat /sys/class/block/sr0/device/model
> DVDRAM GSA-U20N
>
> and I am pretty sure my dvd isn't scsi ...

And I'm pretty sure it is, not just in one but two different ways.
For one all ATA attached CDROMS are ATAPI, which just means a SCSI
command set (MMC in this case) tunneled over an ATA transport. Second
libata always is a scsi low level driver, even when talking to ATA
disk, it just responds to the SCSI commands by translating them to
equivalent ATA commands or faking them up.

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