Re: [PATCH] ide_scsi: allow it to be used for non CD only

From: Bartlomiej Zolnierkiewicz
Date: Wed Nov 29 2006 - 17:47:27 EST


On 11/29/06, Alan <alan@xxxxxxxxxxxxxxxxxxx> wrote:
On Wed, 29 Nov 2006 23:05:56 +0100
"Bartlomiej Zolnierkiewicz" <bzolnier@xxxxxxxxx> wrote:

> Hi,
>
> Nowadays, you can dynamically change driver bound to a device using
> sysfs and it works just fine for IDE, ie:

This isn't the point of this change. The point is to do this at discovery
time. If you do it later then many horrible things happen as the device

then "hdc=ide-cdrom" at a boot time should keep ide-scsi from
binding to hdc for all cases (builtin/modular ide-cd/ide-scsi)

names and renames itself while udev goes boom.

Uh? I hope that udev people are informed
about these horrible things...

/dev/hdc stays there all the time
/dev/sr? addition/removal should be handled
by udev otherwise it looks like a udev bug

Its a small clean patch and it'll solve the problem nicely until
drivers/ide dies.

No strong feelings here about the patch. It is indeed a clean hack. ;)
I just wanted to point out that there are already more flexible ways
to achieve the same thing.

Bart
-
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/