[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: [PATCH] Replace wrong structure type in mmc_ioctl() in cdrom.c
From:       Jens Axboe <axboe () suse ! de>
Date:       2000-11-30 21:21:53
[Download RAW message or body]

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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic