RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1305431 - [RFE] df command is not showing backing file for loop mounts
Summary: [RFE] df command is not showing backing file for loop mounts
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: coreutils
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 7.3
Assignee: Kamil Dudka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-08 08:41 UTC by Birol Bilgin
Modified: 2019-11-14 07:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-13 12:40:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Birol Bilgin 2016-02-08 08:41:21 UTC
1. Proposed title of this feature request

 List backing file with df command on loop mounts

2. Who is the customer behind the request?

Account name: Turkcell #1175262

SRM customer: no

TAM customer: yes

Strategic Customer: yes
 

3. What is the nature and description of the request?

 Prior to rhel 7 df command showed backing files on loop mounts,
 because command reads /etc/mtab this file
 with rhel 7 is symlink to /proc/self/mounts so is shows the loop device
 Customer wants the old behavior implemented for df.  

4. Why does the customer need this? (List the business requirements here)
 Customer has script depends on this functionality.
 

5. How would the customer like to achieve this? (List the functional requirements here)
 Either df command resolves this and pronts the backing file,
 or run df command with a flag to achieve this
 

6. For each functional requirement listed in question 5, specify how Red Hat

and the customer can test to confirm the requirement is successfully implemented.
 
 

7. Is there already an existing RFE upstream or in Red Hat bugzilla?
 No
 

8. Does the customer have any specific timeline dependencies?
 N/A
 

9. Is the sales team involved in this request and do they have any additional input?
 N/A
 

10. List any affected packages or components.
 coreutils
 df
 

11. Would the customer be able to assist in testing this functionality if implemented?
 yes

Comment 2 Ondrej Vasik 2016-02-08 22:37:31 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?

Comment 3 Ondrej Vasik 2016-02-09 07:29:21 UTC
Adding Karel Zak (util-linux - mount upstream maintainer) to cc. Karel, what do you think?

Comment 7 Ondrej Vasik 2016-05-27 12:58:56 UTC
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.

Comment 8 Kamil Dudka 2016-07-13 12:40:39 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.