Skip to contentSkip to conversation

allow hdX=scsi when ide-scsi is a module

PATCH Andrzej Krzysztofowicz 2 participants 2 messages Aug 20, 2001 – Aug 21, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

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.

Even worse.
As the following legal steps:

CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=y

    |
    V
make config
    |
    V
  SCSI emulation support (CONFIG_BLK_DEV_IDESCSI) [Y/m/n/?] y
  ...
  SCSI support (CONFIG_SCSI) [Y/m/n/?] m
    |
    V

CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=m

result in an invalid configuration.
So I suggest also the following change:
**********************************************************

ide/ide.c renamed from ide/ide.c.old +1 -1
@@ -3452,7 +3452,7 @@
  #ifdef CONFIG_SCSI
 	(void) idescsi_init();
  #else
-    #warning ide scsi-emulation selected but no SCSI-subsystem in kernel
+    #error ide scsi-emulation selected but no SCSI-subsystem in kernel
  #endif
 #endif /* CONFIG_BLK_DEV_IDESCSI */
 }

BTW, IDE config is broken in much more places :(

Andrzej

Signature · 4 lines
=======================================================================
  Andrzej M. Krzysztofowicz               [email protected]
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk
#1 lore raw
Quoted 15 lines · Andrzej Krzysztofowicz

Even worse.
As the following legal steps:

CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=y

    |
    V
make config
    |
    V
  SCSI emulation support (CONFIG_BLK_DEV_IDESCSI) [Y/m/n/?] y
  ...
  SCSI support (CONFIG_SCSI) [Y/m/n/?] m
    |
    V
Quoted 4 lines

CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=m

result in an invalid configuration.

Right. Unfortunately there isn't much we can do about it, other that what you proposed. Hopefully CML2 in 2.5 will fix this problem.

Quoted 1 line

So I suggest also the following change:

[...]

Makes sense. Alan, can you apply both patches?

Thanks,
Ion

Signature · 2 lines
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.