GNU bug report logs - #20366
Strange behaviour of df (GNU coreutils) 8.23

Previous Next

Package: coreutils;

Reported by: Benjamin Beier <benjamin <at> desaster-games.com>

Date: Sat, 18 Apr 2015 17:31:02 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20366 in the body.
You can then email your comments to 20366 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#20366; Package coreutils. (Sat, 18 Apr 2015 17:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Beier <benjamin <at> desaster-games.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 18 Apr 2015 17:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Beier <benjamin <at> desaster-games.com>
To: bug-coreutils <at> gnu.org
Subject: Strange behaviour of df (GNU coreutils) 8.23
Date: Sat, 18 Apr 2015 12:44:11 +0200
[Message part 1 (text/plain, inline)]
Hello,

I am running multiple Gentoo/Funtoo servers and yesterday I noticed the 
output of 'df -a' on the Funtoo systems does not show any information 
about the root partition, although this works fine on all my Gentoo 
systems. I compared the installed versions and after a little 
investigation with upgrades and downgrades on both systems i found out, 
that the problem is caused by coreutils version 8.23 (Funtoo default), 
while coreutils version 8.21 (Gentoo default) works fine.

df -a on 8.21:
rootfs                   3997376 1947348   1823932  52% /
/dev/root                3997376 1947348   1823932  52% /
(...)

df -a on 8.23:
rootfs                         -       -         -    - /
/dev/root                      -       -         -    - /
(...)

I also straced df with both versions and interestingly both versions 
seem to collect valid usage information about the root partition. While 
8.21 is showing this information in the output, 8.23 just decides to 
print dashes for some reason?

I attached the strace and full output of both versions.
[strace-df-coreutils-8.23.txt (text/plain, attachment)]
[output-df-coreutils-8.23.txt (text/plain, attachment)]
[output-df-coreutils-8.21.txt (text/plain, attachment)]
[strace-df-coreutils-8.21.txt (text/plain, attachment)]
[system-info.txt (text/plain, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#20366; Package coreutils. (Sun, 19 Apr 2015 10:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 20366 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Benjamin Beier <benjamin <at> desaster-games.com>, 20366 <at> debbugs.gnu.org
Subject: Re: bug#20366: Strange behaviour of df (GNU coreutils) 8.23
Date: Sun, 19 Apr 2015 11:53:56 +0100
On 18/04/15 11:44, Benjamin Beier wrote:
> Hello,
> 
> I am running multiple Gentoo/Funtoo servers and yesterday I noticed the 
> output of 'df -a' on the Funtoo systems does not show any information 
> about the root partition, although this works fine on all my Gentoo 
> systems. I compared the installed versions and after a little 
> investigation with upgrades and downgrades on both systems i found out, 
> that the problem is caused by coreutils version 8.23 (Funtoo default), 
> while coreutils version 8.21 (Gentoo default) works fine.
> 
> df -a on 8.21:
> rootfs                   3997376 1947348   1823932  52% /
> /dev/root                3997376 1947348   1823932  52% /
> (...)
> 
> df -a on 8.23:
> rootfs                         -       -         -    - /
> /dev/root                      -       -         -    - /
> (...)

  /var/lib/ntp                   -       -         -    - /chroot/ntpd/var/lib/ntp
  /var/log/ntp             3997376 1947140   1824140  52% /chroot/ntpd/var/log/ntp

> I also straced df with both versions and interestingly both versions 
> seem to collect valid usage information about the root partition. While 
> 8.21 is showing this information in the output, 8.23 just decides to 
> print dashes for some reason?
> 
> I attached the strace and full output of both versions.

With the current assumptions in df, it's awkward for the 'Filesystem',
i.e. the first column, to keep changing, when in fact the corresponding
device ID returned by stat() stays the same.

Does /etc/mtab symlink to /proc/mounts on your system?
I suspect it doesn't and thus bind mounts are represented as above.
Does the issue go away if you temporarily replace /etc/mtab
with a symlink to /proc/mounts?

In the next release of df (after coreutils next syncs with gnulib),
/proc/self/mountinfo will be queried instead, and thus probably
avoiding this issue?

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#20366; Package coreutils. (Tue, 23 Oct 2018 02:13:02 GMT) Full text and rfc822 format available.

Message #11 received at 20366 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 20366 <at> debbugs.gnu.org
Subject: Re: bug#20366: Strange behaviour of df (GNU coreutils) 8.23
Date: Mon, 22 Oct 2018 20:12:36 -0600
tags 20366 moreinfo
close 20366
stop

(triaging old bugs)

On 19/04/15 04:53 AM, Pádraig Brady wrote:
> On 18/04/15 11:44, Benjamin Beier wrote:
>> I am running multiple Gentoo/Funtoo servers and yesterday I noticed the
>> output of 'df -a' on the Funtoo systems does not show any information
>> about the root partition, 
> 
> Does /etc/mtab symlink to /proc/mounts on your system?
> I suspect it doesn't and thus bind mounts are represented as above.
> Does the issue go away if you temporarily replace /etc/mtab
> with a symlink to /proc/mounts?

With no further follow-ups in 3 years, I'm closing this bug.
Discussion can continue by replying to this thread.

-assaf





Added tag(s) moreinfo. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 23 Oct 2018 02:13:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 20366 <at> debbugs.gnu.org and Benjamin Beier <benjamin <at> desaster-games.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 23 Oct 2018 02:13:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Nov 2018 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.