Re: PATCH: cdrecord: avoiding scsi device numbering for ide devices
From: Jens Axboe
Date: Wed Aug 04 2004 - 07:48:47 EST
On Wed, Aug 04 2004, H.Rosmanith (Kernel Mailing List) wrote:
>
> hi,
>
> I've written a patch for cdrecord/cdrtools. I've sent it to Joerg Schilling
> already, but got no answer so far. Probably he's on vaccation.
>
> I'm sending this to LKML too, because I've read about some ... nebulosity
> with respect to scsi device numbering as used by cdrtools.
>
> To cut a long story short: the patch avoids cdrecord having to use the
> "virtual" scsi device numbering in the form of "ATAPI:x.y.z" and allows
> you to use the name of the device, e.g. /dev/hdc instead.
>
> By removing the IDE to virtual scsi bus/host/lun mapping, a lot of confusion
> can be avoided especially if you have a lot devices of this kind in one
> system.
>
> with kind regards,
> Herbert "herp" Rosmanith
>
> Version: cdrtools-2.01a34
>
> Solution: when the device specified in dev= starts with "/dev/hd" and
> this device can be found in /proc/ide, then cdrecord (and all
> it's components, such as e.g. cdrdao) is forced to use the
> ATAPI driver.
>
> The patch is really very short and works at least on our system.
>
> with kind regards,
> Herbert Rosmanith
>
> --- snip ---
> diff -ru cdrtools-2.01.orig/libscg/scsi-linux-ata.c cdrtools-2.01/libscg/scsi-linux-ata.c
> --- cdrtools-2.01.orig/libscg/scsi-linux-ata.c Sat Jun 12 12:48:12 2004
> +++ cdrtools-2.01/libscg/scsi-linux-ata.c Wed Aug 4 14:19:31 2004
> @@ -42,6 +42,11 @@
> * You should have received a copy of the GNU General Public License along with
> * this program; see the file COPYING. If not, write to the Free Software
> * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
> + *
> + * Sat Jun 12 12:48:12 CEST 2004 herp - Herbert Rosmanith
> + * Force ATAPI driver if dev= starts with /dev/hd and device
> + * is present in /proc/ide/hdX
> + *
That's an extremely bad idea, you want to force ATA driver in either
case.
--
Jens Axboe
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/