From unknown Sat Jun 21 03:21:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19956: Solved (Re: df fails to show all mounted file systems) Resent-From: Vesa-Matti J Kari Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 26 Feb 2015 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19956 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 19956@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14249745478366 (code B ref -1); Thu, 26 Feb 2015 18:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2015 18:15:47 +0000 Received: from localhost ([127.0.0.1]:58935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR2yQ-0002Ar-Bp for submit@debbugs.gnu.org; Thu, 26 Feb 2015 13:15:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57893) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR0ZN-00070U-KT for submit@debbugs.gnu.org; Thu, 26 Feb 2015 10:41:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR0ZH-000155-DV for submit@debbugs.gnu.org; Thu, 26 Feb 2015 10:41:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR0ZH-00014z-AP for submit@debbugs.gnu.org; Thu, 26 Feb 2015 10:41:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR0ZG-0003fw-7N for bug-coreutils@gnu.org; Thu, 26 Feb 2015 10:41:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR0ZC-00012K-Sv for bug-coreutils@gnu.org; Thu, 26 Feb 2015 10:41:38 -0500 Received: from smtp-rs1-vallila2.fe.helsinki.fi ([128.214.173.75]:43713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR0ZC-00011f-HI for bug-coreutils@gnu.org; Thu, 26 Feb 2015 10:41:34 -0500 Received: from cedi.it.helsinki.fi (cedi.it.helsinki.fi [128.214.215.246]) by smtp-rs1.it.helsinki.fi (8.14.4/8.14.4) with ESMTP id t1QFfWjW010318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Feb 2015 17:41:32 +0200 Received: from cedi.it.helsinki.fi (localhost [127.0.0.1]) by cedi.it.helsinki.fi (8.14.7/8.14.7) with ESMTP id t1QFfV3k014891 for ; Thu, 26 Feb 2015 17:41:31 +0200 Received: from localhost (vmkari@localhost) by cedi.it.helsinki.fi (8.14.7/8.14.7/Submit) with ESMTP id t1QFfVaJ014888 for ; Thu, 26 Feb 2015 17:41:31 +0200 Date: Thu, 26 Feb 2015 17:41:31 +0200 (EET) From: Vesa-Matti J Kari X-X-Sender: vmkari@cedi.it.helsinki.fi In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (LRH 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Mailman-Approved-At: Thu, 26 Feb 2015 13:15:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hello, On Thu, 26 Feb 2015, Vesa-Matti J Kari wrote: > [...] starting from coreutils-8.21 (i.e. the bug exist in 8.22 and 8.23 > too), lots of NFS mounts are missing: > > vmkari@cedi:/var/tmp/vmk$ coreutils-8.21/src/df > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/mapper/rvg-root 5134336 4334584 799752 85% / > devtmpfs 8118888 0 8118888 0% /dev > tmpfs 8128372 0 8128372 0% /dev/shm > tmpfs 8128372 18860 8109512 1% /run > tmpfs 8128372 0 8128372 0% /sys/fs/cgroup > /dev/sda1 520876 190144 330732 37% /boot > machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group > machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scratch > machine-1:/h/a 1001028384 746104672 204068672 79% /h/a > machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/local/yht > machine-1:/q/q 113402528 78201952 29433536 73% /q/q > machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/spool/mail > > The contents /etc/mtab are correct and "mount" command also works > correctly. Could you look into this issue please? Wow. I just spent about three hours investigating and came up with this little patch for coreutils-8.20: ----------- sample starts ------------------------------- --- coreutils-8.21/src/df.c 2013-02-05 01:40:31.000000000 +0200 +++ coreutils-8.21-patched/src/df.c 2015-02-26 17:02:41.849872767 +0200 @@ -624,8 +624,8 @@ filter_mount_list (void) } else { - /* If the device name is a real path name ... */ - if (strchr (me->me_devname, '/')) + /* If the device name is a real path name and not an NFS-mount ... */ + if (strchr (me->me_devname, '/') && !strchr (me->me_devname, ':')) { /* ... try to find its device number in the devlist. */ for (devlist = devlist_head; devlist; devlist = devlist->next) ----------- sample ends ------------------------------ And all in vain because the 'df' utility in the latest coreutils git-repo already works correctly. :-) So sorry for the noise. Do you have plans to release coreutils-8.24 soon? The coreutils-8.22.11.el7 on Red Hat Enterprise Linux 7 / CentOS 7 is currently broken. Regards, vmk -- ************************************************************************ Tietotekniikkakeskus / Helsingin yliopisto IT department / University of Helsinki ************************************************************************ From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 26 16:08:11 2015 Received: (at control) by debbugs.gnu.org; 26 Feb 2015 21:08:11 +0000 Received: from localhost ([127.0.0.1]:59029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR5fH-0006A4-8T for submit@debbugs.gnu.org; Thu, 26 Feb 2015 16:08:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40721) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR5fE-00069p-8j for control@debbugs.gnu.org; Thu, 26 Feb 2015 16:08:09 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1QL81hP009814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 26 Feb 2015 16:08:02 -0500 Received: from [10.3.113.214] (ovpn-113-214.phx2.redhat.com [10.3.113.214]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1QL81TH008326 for ; Thu, 26 Feb 2015 16:08:01 -0500 Message-ID: <54EF8B30.3090905@redhat.com> Date: Thu, 26 Feb 2015 14:08:00 -0700 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: GNU bug tracker automated control server Subject: Re: bug#19956: Solved (Re: df fails to show all mounted file systems) References: In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MAKRfuIMhW0nUg3597f4HVlfn0JtbdKnN" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MAKRfuIMhW0nUg3597f4HVlfn0JtbdKnN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable merge 19955 19956 thanks On 02/26/2015 08:41 AM, Vesa-Matti J Kari wrote: >=20 > Hello, >=20 > On Thu, 26 Feb 2015, Vesa-Matti J Kari wrote: >=20 >> [...] starting from coreutils-8.21 (i.e. the bug exist in 8.22 and 8.2= 3 >> too), lots of NFS mounts are missing: >> >> vmkari@cedi:/var/tmp/vmk$ coreutils-8.21/src/df >> Filesystem 1K-blocks Used Available Use% Mounted = on >> /dev/mapper/rvg-root 5134336 4334584 799752 85% / >> devtmpfs 8118888 0 8118888 0% /dev >> tmpfs 8128372 0 8128372 0% /dev/shm= >> tmpfs 8128372 18860 8109512 1% /run >> tmpfs 8128372 0 8128372 0% /sys/fs/= cgroup >> /dev/sda1 520876 190144 330732 37% /boot >> machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group= >> machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scrat= ch >> machine-1:/h/a 1001028384 746104672 204068672 79% /h/a >> machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/loc= al/yht >> machine-1:/q/q 113402528 78201952 29433536 73% /q/q >> machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/= spool/mail >> >> The contents /etc/mtab are correct and "mount" command also works >> correctly. Could you look into this issue please? >=20 > Wow. I just spent about three hours investigating and came up with this= > little patch for coreutils-8.20: >=20 > ----------- sample starts ------------------------------- >=20 > --- coreutils-8.21/src/df.c 2013-02-05 01:40:31.000000000 +0200 > +++ coreutils-8.21-patched/src/df.c 2015-02-26 17:02:41.849872767 +0200= > @@ -624,8 +624,8 @@ filter_mount_list (void) > } > else > { > - /* If the device name is a real path name ... */ > - if (strchr (me->me_devname, '/')) > + /* If the device name is a real path name and not an NFS-mou= nt ... */ > + if (strchr (me->me_devname, '/') && !strchr (me->me_devname,= ':')) > { > /* ... try to find its device number in the devlist. */= > for (devlist =3D devlist_head; devlist; devlist =3D devl= ist->next) >=20 > ----------- sample ends ------------------------------ >=20 > And all in vain because the 'df' utility in the latest coreutils git-re= po > already works correctly. :-) >=20 > So sorry for the noise. >=20 > Do you have plans to release coreutils-8.24 soon? The > coreutils-8.22.11.el7 on Red Hat Enterprise Linux 7 / CentOS 7 is > currently broken. >=20 > Regards, > vmk >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --MAKRfuIMhW0nUg3597f4HVlfn0JtbdKnN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJU74swAAoJEKeha0olJ0NqOS8H/RMnsiqE0S4k11v4fpt8nfwv RVFgqQbzatH/Sk96NWldALpMptSoXa/OhptLSSqs3d0u+qRwurrN5TCDYCW9byzQ w1VCH4+WLBtXfXjuWFTsBPhNosW3PXko0U675ahse0l2fo0iwneaH0Ydimcyynam lDtTAUGiqXCEEbrQJEH87EXxzFZsgyKvMsxkWKCgDBWWymKO1OAUAmnoDGYqc9eZ pRv7HWfhLcrZQ4Ajh4opUfDplRmGChv7zsfcuqrDkve+rZGfK7x/paS2POmnxeLm oBqylrjWiOPVruShCfRElmN9Ftro4IAtg0t4HP8BJlUtY23v9217zhYpmucgNUM= =CZx+ -----END PGP SIGNATURE----- --MAKRfuIMhW0nUg3597f4HVlfn0JtbdKnN-- From unknown Sat Jun 21 03:21:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vesa-Matti J Kari Subject: bug#19956: closed (Re: bug#19956: Solved (Re: df fails to show all mounted file systems)) Message-ID: References: <54F30869.4010006@draigBrady.com> X-Gnu-PR-Message: they-closed 19956 X-Gnu-PR-Package: coreutils Reply-To: 19956@debbugs.gnu.org Date: Sun, 01 Mar 2015 12:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1425213602-5006-1" This is a multi-part message in MIME format... ------------=_1425213602-5006-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19956: Solved (Re: df fails to show all mounted file systems) which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19956@debbugs.gnu.org. --=20 19956: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19956 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1425213602-5006-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19956-done) by debbugs.gnu.org; 1 Mar 2015 12:39:16 +0000 Received: from localhost ([127.0.0.1]:32964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS39Q-0001Hh-Ca for submit@debbugs.gnu.org; Sun, 01 Mar 2015 07:39:16 -0500 Received: from mail2.vodafone.ie ([213.233.128.44]:44694) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS39O-0001HO-04 for 19956-done@debbugs.gnu.org; Sun, 01 Mar 2015 07:39:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkgFABgH81RtTG6d/2dsb2JhbABagwJSgxW+W4V0AoESTQEBAQEBAXyEEAEFJwsBVgsNCwkWDwkDAgECAUUGAQwIAQGILwEIwUmTEgEBCAEBAQEBAQEXBIsShB0BAVaEKwEEhW+NaYcBgyCCSIxYI4ICHIFQPoE8gTgBAQE Received: from unknown (HELO localhost.localdomain) ([109.76.110.157]) by mail2.vodafone.ie with ESMTP; 01 Mar 2015 12:39:06 +0000 Message-ID: <54F30869.4010006@draigBrady.com> Date: Sun, 01 Mar 2015 12:39:05 +0000 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Vesa-Matti J Kari , 19956-done@debbugs.gnu.org Subject: Re: bug#19956: Solved (Re: df fails to show all mounted file systems) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19956-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 26/02/15 15:41, Vesa-Matti J Kari wrote: > > Hello, > > On Thu, 26 Feb 2015, Vesa-Matti J Kari wrote: > >> [...] starting from coreutils-8.21 (i.e. the bug exist in 8.22 and 8.23 >> too), lots of NFS mounts are missing: >> >> vmkari@cedi:/var/tmp/vmk$ coreutils-8.21/src/df >> Filesystem 1K-blocks Used Available Use% Mounted on >> /dev/mapper/rvg-root 5134336 4334584 799752 85% / >> devtmpfs 8118888 0 8118888 0% /dev >> tmpfs 8128372 0 8128372 0% /dev/shm >> tmpfs 8128372 18860 8109512 1% /run >> tmpfs 8128372 0 8128372 0% /sys/fs/cgroup >> /dev/sda1 520876 190144 330732 37% /boot >> machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group >> machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scratch >> machine-1:/h/a 1001028384 746104672 204068672 79% /h/a >> machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/local/yht >> machine-1:/q/q 113402528 78201952 29433536 73% /q/q >> machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/spool/mail >> >> The contents /etc/mtab are correct and "mount" command also works >> correctly. Could you look into this issue please? > > Wow. I just spent about three hours investigating and came up with this > little patch for coreutils-8.20: > > ----------- sample starts ------------------------------- > > --- coreutils-8.21/src/df.c 2013-02-05 01:40:31.000000000 +0200 > +++ coreutils-8.21-patched/src/df.c 2015-02-26 17:02:41.849872767 +0200 > @@ -624,8 +624,8 @@ filter_mount_list (void) > } > else > { > - /* If the device name is a real path name ... */ > - if (strchr (me->me_devname, '/')) > + /* If the device name is a real path name and not an NFS-mount ... */ > + if (strchr (me->me_devname, '/') && !strchr (me->me_devname, ':')) > { > /* ... try to find its device number in the devlist. */ > for (devlist = devlist_head; devlist; devlist = devlist->next) > > ----------- sample ends ------------------------------ > > And all in vain because the 'df' utility in the latest coreutils git-repo > already works correctly. :-) > > So sorry for the noise. > > Do you have plans to release coreutils-8.24 soon? The > coreutils-8.22.11.el7 on Red Hat Enterprise Linux 7 / CentOS 7 is > currently broken. EL7 would get that backport independently of a new release. That's now tracked at https://bugzilla.redhat.com/1197463 thanks, Pádraig. ------------=_1425213602-5006-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Feb 2015 18:15:47 +0000 Received: from localhost ([127.0.0.1]:58935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR2yQ-0002Ar-Bp for submit@debbugs.gnu.org; Thu, 26 Feb 2015 13:15:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57893) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR0ZN-00070U-KT for submit@debbugs.gnu.org; Thu, 26 Feb 2015 10:41:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR0ZH-000155-DV for submit@debbugs.gnu.org; Thu, 26 Feb 2015 10:41:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR0ZH-00014z-AP for submit@debbugs.gnu.org; Thu, 26 Feb 2015 10:41:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR0ZG-0003fw-7N for bug-coreutils@gnu.org; Thu, 26 Feb 2015 10:41:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YR0ZC-00012K-Sv for bug-coreutils@gnu.org; Thu, 26 Feb 2015 10:41:38 -0500 Received: from smtp-rs1-vallila2.fe.helsinki.fi ([128.214.173.75]:43713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YR0ZC-00011f-HI for bug-coreutils@gnu.org; Thu, 26 Feb 2015 10:41:34 -0500 Received: from cedi.it.helsinki.fi (cedi.it.helsinki.fi [128.214.215.246]) by smtp-rs1.it.helsinki.fi (8.14.4/8.14.4) with ESMTP id t1QFfWjW010318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Feb 2015 17:41:32 +0200 Received: from cedi.it.helsinki.fi (localhost [127.0.0.1]) by cedi.it.helsinki.fi (8.14.7/8.14.7) with ESMTP id t1QFfV3k014891 for ; Thu, 26 Feb 2015 17:41:31 +0200 Received: from localhost (vmkari@localhost) by cedi.it.helsinki.fi (8.14.7/8.14.7/Submit) with ESMTP id t1QFfVaJ014888 for ; Thu, 26 Feb 2015 17:41:31 +0200 Date: Thu, 26 Feb 2015 17:41:31 +0200 (EET) From: Vesa-Matti J Kari X-X-Sender: vmkari@cedi.it.helsinki.fi To: bug-coreutils@gnu.org Subject: Solved (Re: df fails to show all mounted file systems) In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (LRH 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 26 Feb 2015 13:15:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hello, On Thu, 26 Feb 2015, Vesa-Matti J Kari wrote: > [...] starting from coreutils-8.21 (i.e. the bug exist in 8.22 and 8.23 > too), lots of NFS mounts are missing: > > vmkari@cedi:/var/tmp/vmk$ coreutils-8.21/src/df > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/mapper/rvg-root 5134336 4334584 799752 85% / > devtmpfs 8118888 0 8118888 0% /dev > tmpfs 8128372 0 8128372 0% /dev/shm > tmpfs 8128372 18860 8109512 1% /run > tmpfs 8128372 0 8128372 0% /sys/fs/cgroup > /dev/sda1 520876 190144 330732 37% /boot > machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group > machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scratch > machine-1:/h/a 1001028384 746104672 204068672 79% /h/a > machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/local/yht > machine-1:/q/q 113402528 78201952 29433536 73% /q/q > machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/spool/mail > > The contents /etc/mtab are correct and "mount" command also works > correctly. Could you look into this issue please? Wow. I just spent about three hours investigating and came up with this little patch for coreutils-8.20: ----------- sample starts ------------------------------- --- coreutils-8.21/src/df.c 2013-02-05 01:40:31.000000000 +0200 +++ coreutils-8.21-patched/src/df.c 2015-02-26 17:02:41.849872767 +0200 @@ -624,8 +624,8 @@ filter_mount_list (void) } else { - /* If the device name is a real path name ... */ - if (strchr (me->me_devname, '/')) + /* If the device name is a real path name and not an NFS-mount ... */ + if (strchr (me->me_devname, '/') && !strchr (me->me_devname, ':')) { /* ... try to find its device number in the devlist. */ for (devlist = devlist_head; devlist; devlist = devlist->next) ----------- sample ends ------------------------------ And all in vain because the 'df' utility in the latest coreutils git-repo already works correctly. :-) So sorry for the noise. Do you have plans to release coreutils-8.24 soon? The coreutils-8.22.11.el7 on Red Hat Enterprise Linux 7 / CentOS 7 is currently broken. Regards, vmk -- ************************************************************************ Tietotekniikkakeskus / Helsingin yliopisto IT department / University of Helsinki ************************************************************************ ------------=_1425213602-5006-1-- From unknown Sat Jun 21 03:21:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vesa-Matti J Kari Subject: bug#19955: closed (Re: bug#19956: Solved (Re: df fails to show all mounted file systems)) Message-ID: References: <54F30869.4010006@draigBrady.com> X-Gnu-PR-Message: they-closed 19955 X-Gnu-PR-Package: coreutils Reply-To: 19955@debbugs.gnu.org Date: Sun, 01 Mar 2015 12:40:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1425213603-5006-3" This is a multi-part message in MIME format... ------------=_1425213603-5006-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19956: df fails to show all mounted file systems which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19955@debbugs.gnu.org. --=20 19956: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19956 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1425213603-5006-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19956-done) by debbugs.gnu.org; 1 Mar 2015 12:39:16 +0000 Received: from localhost ([127.0.0.1]:32964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS39Q-0001Hh-Ca for submit@debbugs.gnu.org; Sun, 01 Mar 2015 07:39:16 -0500 Received: from mail2.vodafone.ie ([213.233.128.44]:44694) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YS39O-0001HO-04 for 19956-done@debbugs.gnu.org; Sun, 01 Mar 2015 07:39:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkgFABgH81RtTG6d/2dsb2JhbABagwJSgxW+W4V0AoESTQEBAQEBAXyEEAEFJwsBVgsNCwkWDwkDAgECAUUGAQwIAQGILwEIwUmTEgEBCAEBAQEBAQEXBIsShB0BAVaEKwEEhW+NaYcBgyCCSIxYI4ICHIFQPoE8gTgBAQE Received: from unknown (HELO localhost.localdomain) ([109.76.110.157]) by mail2.vodafone.ie with ESMTP; 01 Mar 2015 12:39:06 +0000 Message-ID: <54F30869.4010006@draigBrady.com> Date: Sun, 01 Mar 2015 12:39:05 +0000 From: =?windows-1252?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Vesa-Matti J Kari , 19956-done@debbugs.gnu.org Subject: Re: bug#19956: Solved (Re: df fails to show all mounted file systems) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19956-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 26/02/15 15:41, Vesa-Matti J Kari wrote: > > Hello, > > On Thu, 26 Feb 2015, Vesa-Matti J Kari wrote: > >> [...] starting from coreutils-8.21 (i.e. the bug exist in 8.22 and 8.23 >> too), lots of NFS mounts are missing: >> >> vmkari@cedi:/var/tmp/vmk$ coreutils-8.21/src/df >> Filesystem 1K-blocks Used Available Use% Mounted on >> /dev/mapper/rvg-root 5134336 4334584 799752 85% / >> devtmpfs 8118888 0 8118888 0% /dev >> tmpfs 8128372 0 8128372 0% /dev/shm >> tmpfs 8128372 18860 8109512 1% /run >> tmpfs 8128372 0 8128372 0% /sys/fs/cgroup >> /dev/sda1 520876 190144 330732 37% /boot >> machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group >> machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scratch >> machine-1:/h/a 1001028384 746104672 204068672 79% /h/a >> machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/local/yht >> machine-1:/q/q 113402528 78201952 29433536 73% /q/q >> machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/spool/mail >> >> The contents /etc/mtab are correct and "mount" command also works >> correctly. Could you look into this issue please? > > Wow. I just spent about three hours investigating and came up with this > little patch for coreutils-8.20: > > ----------- sample starts ------------------------------- > > --- coreutils-8.21/src/df.c 2013-02-05 01:40:31.000000000 +0200 > +++ coreutils-8.21-patched/src/df.c 2015-02-26 17:02:41.849872767 +0200 > @@ -624,8 +624,8 @@ filter_mount_list (void) > } > else > { > - /* If the device name is a real path name ... */ > - if (strchr (me->me_devname, '/')) > + /* If the device name is a real path name and not an NFS-mount ... */ > + if (strchr (me->me_devname, '/') && !strchr (me->me_devname, ':')) > { > /* ... try to find its device number in the devlist. */ > for (devlist = devlist_head; devlist; devlist = devlist->next) > > ----------- sample ends ------------------------------ > > And all in vain because the 'df' utility in the latest coreutils git-repo > already works correctly. :-) > > So sorry for the noise. > > Do you have plans to release coreutils-8.24 soon? The > coreutils-8.22.11.el7 on Red Hat Enterprise Linux 7 / CentOS 7 is > currently broken. EL7 would get that backport independently of a new release. That's now tracked at https://bugzilla.redhat.com/1197463 thanks, Pádraig. ------------=_1425213603-5006-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Feb 2015 17:51:47 +0000 Received: from localhost ([127.0.0.1]:58895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YR2bC-0001Zf-I0 for submit@debbugs.gnu.org; Thu, 26 Feb 2015 12:51:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33957) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQwnP-0007vq-Ba for submit@debbugs.gnu.org; Thu, 26 Feb 2015 06:40:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQwnG-0001wA-7j for submit@debbugs.gnu.org; Thu, 26 Feb 2015 06:39:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQwnG-0001w6-54 for submit@debbugs.gnu.org; Thu, 26 Feb 2015 06:39:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQwnF-0004jq-5v for bug-coreutils@gnu.org; Thu, 26 Feb 2015 06:39:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQwnB-0001u0-TZ for bug-coreutils@gnu.org; Thu, 26 Feb 2015 06:39:49 -0500 Received: from smtp-rs1-vallila2.fe.helsinki.fi ([128.214.173.75]:54950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQwnB-0001ro-In for bug-coreutils@gnu.org; Thu, 26 Feb 2015 06:39:45 -0500 Received: from cedi.it.helsinki.fi (cedi.it.helsinki.fi [128.214.215.246]) by smtp-rs1.it.helsinki.fi (8.14.4/8.14.4) with ESMTP id t1QBdcI9022335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Feb 2015 13:39:38 +0200 Received: from cedi.it.helsinki.fi (localhost [127.0.0.1]) by cedi.it.helsinki.fi (8.14.7/8.14.7) with ESMTP id t1QBdcbY004868 for ; Thu, 26 Feb 2015 13:39:38 +0200 Received: from localhost (vmkari@localhost) by cedi.it.helsinki.fi (8.14.7/8.14.7/Submit) with ESMTP id t1QBdbLL004865 for ; Thu, 26 Feb 2015 13:39:38 +0200 Date: Thu, 26 Feb 2015 13:39:37 +0200 (EET) From: Vesa-Matti J Kari X-X-Sender: vmkari@cedi.it.helsinki.fi To: bug-coreutils@gnu.org Subject: df fails to show all mounted file systems Message-ID: User-Agent: Alpine 2.11 (LRH 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 26 Feb 2015 12:51:45 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hello, coreutils 8.20 df output is correct, showing all mounted filesystems: vmkari@cedi:/var/tmp/vmk$ coreutils-8.20/src/df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 5134336 4334584 799752 85% / devtmpfs 8118888 0 8118888 0% /dev tmpfs 8128372 0 8128372 0% /dev/shm tmpfs 8128372 18860 8109512 1% /run tmpfs 8128372 0 8128372 0% /sys/fs/cgroup /dev/mapper/rvg-root 5134336 4334584 799752 85% / /dev/sda1 520876 190144 330732 37% /boot machine-1:/data/data1 1459291104 1113208544 271954816 81% /data/data1 machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scratch machine-1:/h/a 1001028384 746104672 204068672 79% /h/a machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/local/yht machine-1:/q/q 113402528 78201952 29433536 73% /q/q machine-1:/h/4 1001028384 746104672 204068672 79% /h/4 machine-1:/p/p 113402528 78201952 29433536 73% /p/p machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group machine-1:/h/9 1001028384 746104672 204068672 79% /h/9 machine-1:/y/lingweb 1459291104 1113208544 271954816 81% /ling/web machine-1:/h/1 1001028384 746104672 204068672 79% /h/3 machine-1:/h/c 1001028384 746104672 204068672 79% /h/c machine-1:/h/6 1001028384 746104672 204068672 79% /h/6 machine-1:/h/7 1001028384 746104672 204068672 79% /h/7 machine-1:/h/5 1001028384 746104672 204068672 79% /h/5 machine-1:/h/8 1001028384 746104672 204068672 79% /h/8 machine-1:/h/1 1001028384 746104672 204068672 79% /h/1 machine-1:/h/2 1001028384 746104672 204068672 79% /h/2 machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/spool/mail machine-1:/h/0 1001028384 746104672 204068672 79% /h/0 But starting from coreutils-8.21 (i.e. the bug exist in 8.22 and 8.23 too), lots of NFS mounts are missing: vmkari@cedi:/var/tmp/vmk$ coreutils-8.21/src/df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/rvg-root 5134336 4334584 799752 85% / devtmpfs 8118888 0 8118888 0% /dev tmpfs 8128372 0 8128372 0% /dev/shm tmpfs 8128372 18860 8109512 1% /run tmpfs 8128372 0 8128372 0% /sys/fs/cgroup /dev/sda1 520876 190144 330732 37% /boot machine-1:/ua/group 1459291104 1113208544 271954816 81% /h/group machine-1:/b/scratch 101721248 75860064 20618816 79% /b/scratch machine-1:/h/a 1001028384 746104672 204068672 79% /h/a machine-1:/usr/local/yht 113402880 78201856 29433856 73% /usr/local/yht machine-1:/q/q 113402528 78201952 29433536 73% /q/q machine-2:/var/spool/mail 230608384 83144160 135929888 38% /var/spool/mail The contents /etc/mtab are correct and "mount" command also works correctly. Could you look into this issue please? Regards, vmk -- ************************************************************************ Tietotekniikkakeskus / Helsingin yliopisto IT department / University of Helsinki ************************************************************************ ------------=_1425213603-5006-3--