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 1309247 - df -l hangs on nfs share when autofs is involved
Summary: df -l hangs on nfs share when autofs is involved
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: coreutils
Version: 7.2
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: Jakub Prokes
Petr Bokoc
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-17 10:27 UTC by Dmitry Zhukovski
Modified: 2020-03-11 15:02 UTC (History)
8 users (show)

Fixed In Version: coreutils-8.22-17.el7
Doc Type: Bug Fix
Doc Text:
*NFS* shares mounted by *autofs* no longer cause timeouts when listing local mounts using "df" A bug in "df" could previously cause *NFS* shares mounted by *autofs* to be detected as local mounts. Attempts to list only local mounts using the "-l" option then timed out, because "df" was attempting to list these incorrectly detected shares. This bug has been fixed, and listing local mounts now works as expected.
Clone Of:
Environment:
Last Closed: 2016-11-04 07:40:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1400024 0 unspecified CLOSED Command "df -t xfs" prevents autofs mount points from expiring 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1511947 1 None None None 2021-06-10 13:32:30 UTC
Red Hat Product Errata RHBA-2016:2497 0 normal SHIPPED_LIVE coreutils bug fix update 2016-11-03 14:11:50 UTC

Internal Links: 1400024 1511947

Description Dmitry Zhukovski 2016-02-17 10:27:32 UTC
Description of problem:
df -l hangs on nfs share when autofs is involved

Version-Release number of selected component (if applicable):
coreutils-8.22-15.el7.x86_64

How reproducible:
Everytime


Steps to Reproduce:
1. define any export on rhel7 server
# cat /etc/exports
/var/export	*(rw,no_root_squash)

2. Configure /net automount entry
# cat /etc/auto.master
/net	-hosts

3. check that you can browse nfs share 
# ls -l /net/rhel7-1/var/export/
total 0
-rw-r--r--. 1 root root 0 Feb 16 09:03 1

4. stop nfs on server 
# systemctl stop nfs-server

5. run df -l <- local filesystems

Actual results:
df hangs

Expected results:
df shows local file systems

Additional info:
if nfs share mounted directly then df -l filters it out and does not hang.

Comment 2 Kamil Dudka 2016-02-17 11:34:40 UTC
It hangs on a stat() call in filter_mount_list().  The autofs file system is not recognized as a remote file system (for which the stat() call is avoided) because there is no ':' in the mounted file (as in the case of NFS mounts).  This behavior does not anyhow differ from the latest upstream version of df.

Comment 6 Kamil Dudka 2016-02-19 09:44:21 UTC
Fix proposed to gnulib upstream:

http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/35708

Comment 7 Kamil Dudka 2016-02-20 08:17:40 UTC
upstream commit:

http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=781788ee

Comment 10 Frank Sorenson 2016-05-12 20:43:00 UTC
Note that this bz will also result in all exported filesystems from a particular nfs server becoming mounted, and can cause problems even if the nfs server is still running (such as when the nfs server is remote and has a large number of exports).

Comment 24 errata-xmlrpc 2016-11-04 07:40:12 UTC
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://rhn.redhat.com/errata/RHBA-2016-2497.html


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