lkml.org 
[lkml]   [2001]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] allow hdX=scsi when ide-scsi is a module
Hi,

The current IDE code doesn't allow the user to reserve a drive to be used
only with ide-scsi emulation, if the ide-scsi layer is compiled as a
module. The following trivial patch fixes the problem, I've been using it
for the last 6 months or so.

The patch removes the explicit dependency on CONFIG_SCSI because ide-scsi
itself requires the SCSI subsystem.

Please apply...

Thanks,
Ion

--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
-----------------------
diff -urX unpack/diff_kernel_excludes tmp/linux/drivers/ide/ide.c linux-2.4/drivers/ide/ide.c
--- tmp/linux/drivers/ide/ide.c Mon Sep 11 08:42:57 2000
+++ linux-2.4/drivers/ide/ide.c Wed Oct 11 14:25:14 2000
@@ -2973,7 +2973,7 @@
drive->remap_0_to_1 = 2;
goto done;
case -14: /* "scsi" */
-#if defined(CONFIG_BLK_DEV_IDESCSI) && defined(CONFIG_SCSI)
+#if defined(CONFIG_BLK_DEV_IDESCSI) || defined(CONFIG_BLK_DEV_IDESCSI_MODULE)
drive->scsi = 1;
goto done;
#else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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