Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 06/30/2007 22:16:39
Module Name: src
Committed By: dsl
Date: Sat Jun 30 22:16:39 UTC 2007
Modified Files:
src/sys/dev/isa: mcd.c
src/sys/dev/scsipi: cd.c
src/sys/sys: cdio.h
Log Message:
The cd ioctl definitions are not condusive to being called from within
the kernel (eg from withthe linux compat code).
Add CDIOCREADSUBCHANNEL_BUF and CDIOREADTOCENTRIES_BUF which are like the
existing ioctls withoutthe _BUF, except that the data area immediately
follows the control structure (and is fixed length).
Modify scsipi/cd.c so that it only ever has one 'struct cd_formatted_toc'
allocated on the stack (maybe this info ought to be in the softc)
structure since even one 800 byte on-stack buffer isn't overly friendly.
cdplay(1) still seems able to read the track-list of an ATAPI cd.
To generate a diff of this commit:
cvs rdiff -r1.97 -r1.98 src/sys/dev/isa/mcd.c
cvs rdiff -r1.263 -r1.264 src/sys/dev/scsipi/cd.c
cvs rdiff -r1.26 -r1.27 src/sys/sys/cdio.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.