Peter Osterlund wrote:
On Fri, 29 Oct 2004, O.Sezer wrote:
Hi Peter:
What was the problem made you "add code for sending generic packet commands without relying on cdrom_device_ops" as you noted in changelog for packet-2.5.44? My interest in this is that when I tried to backport some 2.6 cdrom changes/fixes for my personal 2.4-tree (especially the csets 1.1975 "cdrom get_last_written fixup", and on top of that, 1.2087 "cdrom signedness range fixes") pktcdvd broke. My primary suspect for this is the return changes in the cdrom_get_di function, hence the $SUBJECT; will investigate it more. But this change in kernel is far much later than your change in pktcdvd-2.5/2.6. So, can you explain?
It was because cdrom_device_ops became private to the cdrom driver, so the packet writing driver couldn't access it.
http://lists.suse.com/archive/packet-writing/2002-Oct/0045.html
OK then, what is the difference between __cdrom_get_di() of 2.4 and cdrom_get_disc_info() of 2.6 in terms of their return codes? Is cdo->generic_packet(cdi, &cgc) supposed to return success/fail (which you use for that purpose in pktcdvd-2.4 afaics) or the buflen? (Asking this in relation to 2.6's cset-1.1975 that I mentioned above). Thanks in advance for the patience ;) Ozkan