| Summary: | [RFE] df command is not showing backing file for loop mounts | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Birol Bilgin <bbilgin> |
| Component: | coreutils | Assignee: | Kamil Dudka <kdudka> |
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | CC: | kdudka, kzak |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | 7.3 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-13 12:40: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: | |
|
Description
Birol Bilgin
2016-02-08 08:41:21 UTC
Old behaviour of RHEL 6, where df read list of mounts from /etc/mtab can't be restored, as you mentioned, it is now symlink to /proc/mounts . Because this dir contains many duplicities, deduplication is implemented there. However - this is not issue you refer to. Command df provides just the information provided by kernel on expected place. However, command mount from util-linux shows the backing file on both rhel 6 and rhel 7. I think this might be question for kernel developers why they don't show origin of loopback device in /proc/mounts. Can you please be more clear on the usecase? Adding Karel Zak (util-linux - mount upstream maintainer) to cc. Karel, what do you think? Based on discussion with Karel, this is not going to be changed on coreutils side. Karel proposes using losetup tool to list loop device backing file instead of df. We can't revert the /etc/mtab changes - so the only option here is to update the scripts that relied on the old behaviour and change them in portable way. I think this bugzilla will end up WONTFIX at the end, but setting condnack design for now. We cannot change the output of df for RHEL-7 because it could break existing solutions of our customers. Even if we did, this bug would recur in the next major version of RHEL because the requested behavior is neither available in upstream nor in Fedora any more. Please consider using losetup instead of df for querying the backing file. |