Bug 438441
| Summary: | eject: did not find a device /dev/sr0 in /sys/block/ | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jesse Keating <jkeating> |
| Component: | eject | Assignee: | Zdenek Prikryl <zprikryl> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | dcantrell |
| 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: | 2008-03-21 13:24:26 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: | 235706 | ||
|
Description
Jesse Keating
2008-03-20 21:30:09 UTC
Found the problem. sysfs changed things in /sys/block/ to be symlinks, which conflicted with a patch in eject to ensure that the device is removable. The check would only look in directories in /sys/block/ for content, and thus would ignore symlinks. I've updated the patch and issued the build. It's worth noting that this fixes ejecting things via Nautilus in GNOME too. These changes in /sys/block are only in rawhide or even in F{7,8}?
I was only aware of the problem on rawhide. Have we attempted to get this patch accepted upstream? No, we haven't. This patch is really painful. At my computers everything works fine, but I have some other reports that in some cases eject doesn't work (devices like iPod etc). Probably I will have to write additional check for hotpluggable flag, so this patch isn't fully correct. See here: https://admin.fedoraproject.org/updates/F8/FEDORA-2008-2623. Unfortunately, I don't know very much about theirs problems, so it's difficult to fix something. Maybe they have problem because of symlinks too. (In reply to comment #5) > See here: https://admin.fedoraproject.org/updates/F8/FEDORA-2008-2623. > Unfortunately, I don't know very much about theirs problems, so it's difficult > to fix something. Maybe they have problem because of symlinks too. Actually that looks like for some reason his eject is looking for an "scd0" device, when his device is actually "sr0". I'd have to see more of his system to know. |