[BusyBox 0004714]: mdev can't tell the difference between /dev/lp0 and /dev/usblp0

bugs at busybox.net bugs at busybox.net
Sat Sep 6 19:25:11 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=4714 
====================================================================== 
Reported By:                lucas
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   4714
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             08-23-2008 14:46 PDT
Last Modified:              09-06-2008 12:25 PDT
====================================================================== 
Summary:                    mdev can't tell the difference between /dev/lp0 and
/dev/usblp0
Description: 
As mdev uses the basename of the device path to know the device name,
situations like "/sys/class/usb/lp0" and "/sys/class/printer/lp0" get in
conflict (the last hotplug event overwrites the previous device file).
====================================================================== 

---------------------------------------------------------------------- 
 lucas - 09-04-08 08:21  
---------------------------------------------------------------------- 
RFC: Uploaded a patch to implement the behaviour described earlier, but
doesn't handle the "exec" case (need some directions on the best way
here). 

---------------------------------------------------------------------- 
 vda - 09-06-08 12:25  
---------------------------------------------------------------------- 
Trying to understand what patch is doing. I understand why did you need to
do sscanf earlier, but starting from this part:

-               if (ENABLE_FEATURE_MDEV_RENAME)
+               if (ENABLE_FEATURE_MDEV_RENAME && !alias)

there seems to be another, unrelated change mixed in. Please explain. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-23-08 14:46  lucas          New Issue                                    
08-23-08 14:46  lucas          Status                   new => assigned     
08-23-08 14:46  lucas          Assigned To               => BusyBox         
08-23-08 14:52  lucas          Issue Monitored: lucas                       
09-04-08 08:20  lucas          File Added:
bb-mdev-implement_matching_by_dev_pair.diff                    
09-04-08 08:21  lucas          Note Added: 0010994                          
09-06-08 12:25  vda            Note Added: 0011144                          
======================================================================




More information about the busybox-cvs mailing list