CD speed discovery
david at fubar.dk
Sun Jan 18 00:02:44 EET 2004
On Sat, 2004-01-17 at 18:44, Bastien Nocera wrote:
> So, I've managed to get around getting the speed problem sorted.
> Patch attached.
Thanks. I've applied and committed this patch with the following change
+ if (read_speed)
+ if( write_speed>0 )
It also only seems to work for ide-scsi, not ide-cd which the cdrw drive
on my test system is using, so some more work is required. What is the
unit of the numbers?
With ide-cd I get storage.cdrom.read_speed==3528 so I assume this is
kb/s, yes? (the file /proc/sys/dev/cdrom/info suggest 20x and 20 times
150-something is ~= 3528)
I think ide-scsi comment goes for your DVD[+-]RW patch as well - I
haven't got any DVD writers to test. I've added an item in doc/TODO so
we don't forget this.
Btw, isn't ide-scsi going away in Linux 2.6?
> I snuck in a patch to open the CD drive O_EXCL, to avoid
> colliding with a running application using the CD.
> PS: libbacon's CD drive discovery code is much cleaner with HAL support
More information about the xdg