lkml.org 
[lkml]   [2000]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Replace wrong structure type in mmc_ioctl() in cdrom.c
On Thu, Nov 30 2000, Richard Pries wrote:
> Jens,
>
> Please consider the following patch for the wrong type of structure
> in mmc_ioctl() in cdrom.c.
>
> Currently, mmc_ioctl() in cdrom.c is passed a cdrom_msf structure
> when ioctl() is called with CDROMREADRAW, CDROMREADMODE1, or
> CDROMREADMODE2 as its second argument. This structure does not
> provide the required buffer for reading the data, and it does not
> correspond to the structure that cdrom.h says to use with these
> ioctl() calls. This patch replaces the cdrom_msf structure with a
> cdrom_read structure (as specified in cdrom.h). Preliminary tests
> indicate that this patch works for both IDE and SCSI drives.

Sure I bet it works, but you just broke all the programs that currently
use any of the above ioctls. I've known about this for years... You
can do all that you want with cdrom_msf, it's just more hassle. For
2.5 I'll introduce newer variants of the above ioctls and keep them as-is
for compatability, tossing them out is not an option.

I will take a patch that corrects the comment though!

--
* Jens Axboe <axboe@suse.de>
* SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:49    [W:0.023 / U:8.608 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site