Date: Sun, 27 Oct 2002 15:16:18 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Nate Lawson <nate@root.org> Cc: Julian Elischer <julian@elischer.org>, current@FreeBSD.ORG Subject: Re: burncd/cdcontrol Message-ID: <3DBC73C2.9C786C38@mindspring.com> References: <Pine.BSF.4.21.0210271156550.81036-100000@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Nate Lawson wrote: > The problem with making burncd work for SCSI is that it doesn't use the > ATAPI interface, instead it implements our own ioctl interface. > Currently, the ioctls burncd uses that are missing from cd(4) are: [ ... ] > Instead of cutting/pasting those from atapi-cd.c, I think it would be > better eventually to rewrite burncd using the ATAPI commands and libcam to > send them to the drive. That way we can have one CD driver instead of > duplicating all that code. IMO, atapi-cd.c need never have been written > but atapi-cam should have been done much earlier. We now have two nearly > identical drivers for supporting the exact same hardware. cd(4) works for > ATAPI and SCSI drives. acd(4) doesn't but has newer ATAPI commands that > have not yet been cut/pasted into cd(4). If you want to do 8 at a time, ATAPI isn't an option. Also, SCSI is the least common denominator; ATAPI is SCSI over IDE. Finally, the CAM/ATAPI SCSI code is already written and checked in, so there's already a common API (it's just that, as you point out, missing some ioctl() entry points. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DBC73C2.9C786C38>