comments about conflicting SCSI/CDROM ioctls
Subsystems (3)
PATCH 1/1 comments about conflicting SCSI/CDROM ioctls
This patch adds a couple of comments to the cdrom and SCSI code warning of duplicate ioctl numbers.
Cheers, Andreas
============================================================================
include/linux/cdrom.h +5 -0
@@ -128,8 +128,13 @@#define CDROM_DEBUG 0x5330/* Turn debug messages on/off */ #define CDROM_GET_CAPABILITY 0x5331/* get capabilities */ +/* Note that scsi/scsi_ioctl.h also uses 0x5382 - 0x5386. +* Future CDROM ioctls should be kept below 0x537F +*/ +/* This ioctl is only used by sbpcd at the moment */ #define CDROMAUDIOBUFSIZ 0x5382/* set the audio buffer size */ +/* conflict with SCSI_IOCTL_GET_IDLUN */ /* DVD-ROM Specific ioctls */ #define DVD_READ_STRUCT 0x5390/* Read structure */
usr/src/linux-2.4.0-0.3/include/scsi/scsi.h renamed from include/scsi/scsi.h +2 -1
@@ -196,8 +196,9 @@* Here are some scsi specific ioctl commands which are sometimes useful. */ /* These are a few other constants only used by scsi devices */ +/* Note that include/linux/cdrom.h also defines IOCTL 0x5300 - 0x5395 */ -#define SCSI_IOCTL_GET_IDLUN 0x5382 +#define SCSI_IOCTL_GET_IDLUN 0x5382/* conflicts with CDROMAUDIOBUFSIZ */ /* Used to turn on and off tagged queuing for scsi devices */
Signature · 1 line
Andreas Dilger TurboLabs filesystem development