Bug 1566432
Summary: | [RHEL-7.5] losetup: /dev/loop1: failed to set up loop device | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | xhe <xhe> | |
Component: | util-linux | Assignee: | Karel Zak <kzak> | |
Status: | CLOSED ERRATA | QA Contact: | Radka Brychtova <rskvaril> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.5 | CC: | fsumsal, rskvaril | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | util-linux-2.23.2-56.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1614364 (view as bug list) | Environment: | ||
Last Closed: | 2018-10-30 10:52:39 UTC | Type: | Bug | |
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: | 1614364 |
Description
xhe@redhat.com
2018-04-12 10:02:42 UTC
The command losetup /dev/loop1 -f /tmp/tfile_loop1 does not make sense. The option -f is mutually exclusive to <device>. You cannot force losetup to use loop1 and in the same time ask to use the first free device (-f). The right way is: losetup /dev/loop1 /tmp/tfile_loop1 or losetup -f /tmp/tfile Yes, losetup should be more smart when it checks command line options. The current behaviour when it tries to blindly use <device> as well as -f is stupid. This issue is improved by upstream commit c3f5a0f1d47dbc47f6d21da232d4eb1cfb7905db. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:3178 |