Bug 174111
| Summary: | mount allows loopback devices to be mounted more than once to the same mount point | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Radek Bíba <rbiba> |
| Component: | util-linux | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-01-03 18:10:27 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
Radek Bíba
2005-11-24 18:00:44 UTC
Good catch! The check for "alredy mounted" is based on EBUSY (mount(2)), but this is not true for "-o loop" where the mount command creates always new device :-) $ cat /etc/mtab | grep loop /tmp/testloop /tmp/testmnt ext2 rw,noexec,nosuid,nodev,loop=/dev/loop0,user=zakkr 0 0 /tmp/testloop /tmp/testmnt ext2 rw,noexec,nosuid,nodev,loop=/dev/loop1,user=zakkr 0 0 $ cat /proc/mounts | grep loop /dev/loop0 /tmp/testmnt ext2 rw,nosuid,nodev,noexec,nogrpid 0 0 /dev/loop1 /tmp/testmnt ext2 rw,nosuid,nodev,noexec,nogrpid 0 0 Fixed in FC4 and FC5. I'm going to fix it in FC3 with something more important... Thanks very much. I tried the new version on rawhide and it indeed works as expected. |