GNU bug report logs - #34309
coreutils v. 8.30 – Output ignores paths specified.

Previous Next

Package: coreutils;

Reported by: Ricky Tigg <ricky.tigg <at> gmail.com>

Date: Mon, 4 Feb 2019 11:00:02 UTC

Severity: normal

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

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 34309 in the body.
You can then email your comments to 34309 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#34309; Package coreutils. (Mon, 04 Feb 2019 11:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricky Tigg <ricky.tigg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 04 Feb 2019 11:00:03 GMT) Full text and rfc822 format available.

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

From: Ricky Tigg <ricky.tigg <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: coreutils v. 8.30 – Output ignores paths specified.
Date: Mon, 4 Feb 2019 11:59:18 +0100
[Message part 1 (text/plain, inline)]
bash v.4.4.23. Output ignores paths specified.Commands executed:

$ df -h
Filesystem                Size  Used Avail Use% Mounted on
devtmpfs                  1.9G     0  1.9G   0% /dev
tmpfs                     1.9G   90M  1.8G   5% /dev/shm
tmpfs                     1.9G  1.8M  1.9G   1% /run
tmpfs                     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mapper/fedora-juuri   18G  7.2G  9.6G  43% /
tmpfs                     1.9G   16K  1.9G   1% /tmp
/dev/mapper/fedora-koti   894G  6.9G  842G   1% /home
/dev/sda1                 976M  221M  689M  25% /boot
tmpfs                     374M   44K  374M   1% /run/user/1000
/dev/sdc1                 7.3G   34M  6.9G   1% /run/media/yk/USB

$ df -h /run/media/
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.9G  1.8M  1.9G   1% /run

Expected result: since path '/run/media/' had been specified, a correct
whole output would be

/dev/sdc1                 7.3G   34M  6.9G   1% /run/media/yk/USB
[Message part 2 (text/html, inline)]

Reply sent to Bernhard Voelker <mail <at> bernhard-voelker.de>:
You have taken responsibility. (Mon, 04 Feb 2019 14:52:02 GMT) Full text and rfc822 format available.

Notification sent to Ricky Tigg <ricky.tigg <at> gmail.com>:
bug acknowledged by developer. (Mon, 04 Feb 2019 14:52:03 GMT) Full text and rfc822 format available.

Message #10 received at 34309-done <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Ricky Tigg <ricky.tigg <at> gmail.com>, 34309-done <at> debbugs.gnu.org
Subject: Re: bug#34309: coreutils v. 8.30 – Output ignores paths specified.
Date: Mon, 4 Feb 2019 15:50:53 +0100
tag 34309 notabug
thanks

On 2/4/19 11:59 AM, Ricky Tigg wrote:
> bash v.4.4.23. Output ignores paths specified.Commands executed:
> 
> $ df -h
> Filesystem                Size  Used Avail Use% Mounted on
> devtmpfs                  1.9G     0  1.9G   0% /dev
> tmpfs                     1.9G   90M  1.8G   5% /dev/shm
> tmpfs                     1.9G  1.8M  1.9G   1% /run
> tmpfs                     1.9G     0  1.9G   0% /sys/fs/cgroup
> /dev/mapper/fedora-juuri   18G  7.2G  9.6G  43% /
> tmpfs                     1.9G   16K  1.9G   1% /tmp
> /dev/mapper/fedora-koti   894G  6.9G  842G   1% /home
> /dev/sda1                 976M  221M  689M  25% /boot
> tmpfs                     374M   44K  374M   1% /run/user/1000
> /dev/sdc1                 7.3G   34M  6.9G   1% /run/media/yk/USB
> 
> $ df -h /run/media/
> Filesystem      Size  Used Avail Use% Mounted on
________________________________________^^^^^^^^^^
> tmpfs           1.9G  1.8M  1.9G   1% /run

You asked 'df' to output the file system statistics the file/directory
"/run/media" is on.  As that directory is not a mount point by itself,
the tools goes up in the hierarchy and finds "/run" in the list
of mount points.  That's what it prints, and the column label there-
fore correctly is "Mounted on".

If you want to see the given argument value as well, you need to
specify/add the --output=file column, e.g.:

  $ df --output=source,pcent,target,file /run/user
  Filesystem     Use% Mounted on File
  tmpfs            1% /run       /run/user


> Expected result: since path '/run/media/' had been specified, a correct
> whole output would be
> 
> /dev/sdc1                 7.3G   34M  6.9G   1% /run/media/yk/USB

I don't understand: how would the tool know you want it to have statictics
for file system(s) mounted _below_ the given argument?  It doesn't work
in that direction ... it works the other way round (see above).

As such, I'm marking this as not a bug in our software.  Of course,
feel free to continue the discussion here.

Have a nice day,
Berny





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

This bug report was last modified 5 years and 52 days ago.

Previous Next


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