GNU bug report logs - #16539
df command, possible bug?

Previous Next

Package: coreutils;

Reported by: crubel <at> compro.net

Date: Fri, 24 Jan 2014 20:39:01 UTC

Severity: normal

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


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

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 16539 <at> debbugs.gnu.org, crubel <at> compro.net
Subject: Re: bug#16539: More details on df command output for you
Date: Tue, 28 Jan 2014 12:13:00 +0100
On 01/27/2014 11:47 PM, Bernhard Voelker wrote:
> On 01/27/2014 02:06 AM, Pádraig Brady wrote:
>> wrt c) and annoying warnings, I also notice `df -a` on a default Fedora 20 install here,
>> giving multiple duplicate warnings like:
>>   df: ‘net:[4026532416]’: No such file or directory
>>   df: ‘net:[4026532416]’: No such file or directory
>> That's due to:
>>   $ grep net: /proc/mounts
>>   proc net:[4026532416] proc rw,nosuid,nodev,noexec,relatime 0 0
>>   proc net:[4026532416] proc rw,nosuid,nodev,noexec,relatime 0 0
>> Which is due to support for namespaces.
> 
> Ugh ... and that's a third problm class for df. ;-(
> 
>> Seems like we should not try to lookup non absolute mount points?
> 
> yes, that's probably our best chance.

Thinking further, this is mandatory:

  $ touch 'net:[4026532416]'

This would make the stat() in df succeed and lead to wrong output.

Have a nice day,
Berny




This bug report was last modified 10 years and 333 days ago.

Previous Next


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