Bug 108757
Summary: | devfs-detection in %pre is naive and wrong | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Enrico Scholz <rh-bugzilla> |
Component: | MAKEDEV | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | CC: | herrold, wtogami |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 3.12.1-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-14 15:26:30 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: | |||
Bug Depends On: | |||
Bug Blocks: | 130526 |
Description
Enrico Scholz
2003-11-01 02:37:45 UTC
I agree that this is a problem case, but I don't think that checking for a magic device number will work dependably enough. Device numbers appear to be assigned as-needed for non-device mount points (on my test system, /dev/pts is device 6, /proc/bus/usb got 7, /dev/shm is 8, and so on), and 6 happens to be the first-available at this time. Mmmh, you are right. But checking for major==0 should be enough. Additionally, atime==0 could be checked also: | D=$(stat -c '%X' /dev) | test "$N" -lt 256 -a $D = 0 ... Usual harddisks are 0x300 or 0x800, loop is 0x700 and RAID is 0x900, so all relevant cases are catched. NFS (which gets major==0 also) will have atime > 0. Does 3.7-1 improve things? 3.12.1-1 does away with dev completely, %pre and all. |