On Sun, Jan 29, 2006 at 12:07:50PM +0100, Marco d'Itri wrote:
> On Jan 29, di dit <[EMAIL PROTECTED]> wrote:
> 
> I can see why the rule does not work, at the removable==1 level we have
> BUS=="block" instead of the expected BUS=="ide", and DRIVER is only
> available at the upper level.
> Kay?
> 
> BUS=="ide", SYSFS{removable}=="1", DRIVER!="ide-cdrom", GOTO="no_volume_id"
> 
> 
> Maybe a rule like this one would work, but is it correct? (And how are
> people going to figure this?)
> 
> BUS=="ide", SYSFS{block/removable}=="1", DRIVER!="ide-cdrom", 
> GOTO="no_volume_id"

Sure, it is correct, but we should better not introduce dependencies on
the weird symlinks that crosslink "class devices" and "devices", they
will probably go away when we change /sys/devices to a sane layout and
the "block device" will just become a real child of the "device".

Changing udev to look with SYSFS{} at the device we got the event for,
should work just fine.

Thanks,
Kay


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to