Bug 74454
| Summary: | Can't get lock on /dev/usb/ttyUSBx | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Nathan Crapo <nathan_crapo> |
| Component: | lockdev | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | fstaes, jreiser |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-02-23 12:58:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Nathan Crapo
2002-09-24 17:08:27 UTC
I think lockdev will fail pretty much all the time when the device file is in a subdirectory of /dev. For example, trying to claim a lock on /dev/lat/foo results in lockdev failing to stat /dev/foo (as shown by strace). I can only assume that this will get more commonplace as more and more stuff gets moved to subdirs of /dev (or devfs is used). In addition, perhaps lockdev should use /var/lock/LOCK..dir.dir.file for device files in subdirs? Otherwise there is the potential for collisions. Got a similar problem with ttyACM0. As there are no entries for ACM's within /dev, one has to create a symbolic link pointing from /dev/ttyACM0 to /dev/input/ttyACM0 in order to make locking work. *** Bug 98160 has been marked as a duplicate of this bug. *** *** Bug 126082 has been marked as a duplicate of this bug. *** Fixed in devel branch.
The solution is like in the pppd:
/dev/input/ttyACM0 --> /var/lock/LCK..input_ttyACM0
|