GNU bug report logs - #37702
Suggestion for 'df' utility

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: John Pye <john.pye@HIDDEN>; dated Fri, 11 Oct 2019 14:32:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 14 Oct 2019 08:01:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 04:01:24 2019
Received: from localhost ([127.0.0.1]:38043 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJvI9-0002ir-8d
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 04:01:23 -0400
Received: from mx1.redhat.com ([209.132.183.28]:60162)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kdudka@HIDDEN>) id 1iJvI6-0002bd-50
 for 37702 <at> debbugs.gnu.org; Mon, 14 Oct 2019 04:01:19 -0400
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com
 [10.5.11.11])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id 7E1EE18CB8F9;
 Mon, 14 Oct 2019 08:01:12 +0000 (UTC)
Received: from nbkamil.localnet (unknown [10.43.7.102])
 by smtp.corp.redhat.com (Postfix) with ESMTP id E0696600CE;
 Mon, 14 Oct 2019 08:01:10 +0000 (UTC)
From: Kamil Dudka <kdudka@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#37702: Suggestion for 'df' utility
Date: Mon, 14 Oct 2019 10:01:09 +0200
Message-ID: <1756559.dWJeaLVEuj@nbkamil>
In-Reply-To: <5f31c144-7c8e-2b23-8bcc-c8ff5af45000@HIDDEN>
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <9a1f38a4-1626-25c0-1feb-3d7dd87b66a2@HIDDEN>
 <5f31c144-7c8e-2b23-8bcc-c8ff5af45000@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2
 (mx1.redhat.com [10.5.110.63]); Mon, 14 Oct 2019 08:01:12 +0000 (UTC)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 37702
Cc: 37702 <at> debbugs.gnu.org, =?ISO-8859-1?Q?P=E1draig?= Brady <P@HIDDEN>,
 Assaf Gordon <assafgordon@HIDDEN>, bug-coreutils@HIDDEN,
 John Pye <john.pye@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

On Monday, October 14, 2019 8:06:47 AM CEST Paul Eggert wrote:
> On 10/13/19 3:00 PM, Assaf Gordon wrote:
> > I'm not sure if it's easy to find a set of criteria
> > that would work well while having minimal unexpected side effects of
> > hiding
> > entries people in other systems do expect to see.
>=20
> No matter what we do (even if we do nothing), there will be problems.

This is not an excuse to introduce new problems.

> But doing
> nothing is clearly a bad idea, as the output of plain df is quite bad
> right now in typical use. We can do better than that, even if we cannot be
> perfect and we cause problems by changing defaults.

I would prefer _not_ to change the default behavior (including the behavior
of commonly used options).  There are downstream consumers who care about=20
compatibility in the first place.

Kamil

> > Out of curiosity,
> > can you share the output of the following commands on the same system?
>=20
> Sure, here it is:
>=20
> $ lsblk
> NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
> loop0           7:0    0 140.7M  1 loop  /snap/gnome-3-26-1604/90
> loop1           7:1    0  44.2M  1 loop  /snap/gtk-common-themes/1353
> loop2           7:2    0 149.9M  1 loop  /snap/gnome-3-28-1804/71
> loop3           7:3    0   3.7M  1 loop  /snap/gnome-system-monitor/100
> loop4           7:4    0  14.8M  1 loop  /snap/gnome-characters/317
> loop5           7:5    0   956K  1 loop  /snap/gnome-logs/73
> loop6           7:6    0 149.9M  1 loop  /snap/gnome-3-28-1804/67
> loop7           7:7    0   3.7M  1 loop  /snap/gnome-system-monitor/95
> loop8           7:8    0     4M  1 loop  /snap/gnome-calculator/406
> loop9           7:9    0  54.5M  1 loop  /snap/core18/1192
> loop10          7:10   0    89M  1 loop  /snap/core/7713
> loop11          7:11   0  42.8M  1 loop  /snap/gtk-common-themes/1313
> loop12          7:12   0  14.8M  1 loop  /snap/gnome-characters/296
> loop13          7:13   0 140.7M  1 loop  /snap/gnome-3-26-1604/92
> loop14          7:14   0  89.1M  1 loop  /snap/core/7917
> loop15          7:15   0   956K  1 loop  /snap/gnome-logs/81
> loop16          7:16   0   4.2M  1 loop  /snap/gnome-calculator/501
> loop17          7:17   0  54.4M  1 loop  /snap/core18/1144
> sda             8:0    0 111.8G  0 disk
> =E2=94=9C=E2=94=80sda1          8:1    0  96.9G  0 part  /
> =E2=94=9C=E2=94=80sda2          8:2    0     1K  0 part
> =E2=94=94=E2=94=80sda5          8:5    0    15G  0 part  [SWAP]
> sdb             8:16   0   2.7T  0 disk
> =E2=94=94=E2=94=80sdb1          8:17   0   2.7T  0 part
>    =E2=94=94=E2=94=80md127       9:127  0   2.7T  0 raid1
>      =E2=94=94=E2=94=80md127p1 259:0    0   2.7T  0 md    /home
> sdc             8:32   0   2.7T  0 disk
> =E2=94=94=E2=94=80sdc1          8:33   0   2.7T  0 part
>    =E2=94=94=E2=94=80md127       9:127  0   2.7T  0 raid1
>      =E2=94=94=E2=94=80md127p1 259:0    0   2.7T  0 md    /home
> sdd             8:48   1   7.5G  0 disk
> =E2=94=94=E2=94=80sdd1          8:49   1   7.5G  0 part  /media/eggert/B8=
27-D456
> sr0            11:0    1  1024M  0 rom
> $ df -x tmpfs -x devtmpfs -x squashfs
> Filesystem      1K-blocks       Used  Available Use% Mounted on
> /dev/sda1        99431552   11740452   82597212  13% /
> /dev/md127p1   2884021472 1326329584 1411168908  49% /home
> /dev/sdd1         7812864    4705136    3107728  61% /media/eggert/B827-D=
456






Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Oct 2019 08:01:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 04:01:24 2019
Received: from localhost ([127.0.0.1]:38045 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJvIC-0002lA-0k
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 04:01:24 -0400
Received: from lists.gnu.org ([209.51.188.17]:55289)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kdudka@HIDDEN>) id 1iJvI6-0002gV-Fl
 for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 04:01:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50423)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <kdudka@HIDDEN>) id 1iJvI5-0002or-21
 for bug-coreutils@HIDDEN; Mon, 14 Oct 2019 04:01:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_HI
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kdudka@HIDDEN>) id 1iJvI2-0006yC-Mi
 for bug-coreutils@HIDDEN; Mon, 14 Oct 2019 04:01:16 -0400
Received: from mx1.redhat.com ([209.132.183.28]:45486)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <kdudka@HIDDEN>) id 1iJvI2-0006x3-EP
 for bug-coreutils@HIDDEN; Mon, 14 Oct 2019 04:01:14 -0400
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com
 [10.5.11.11])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id 7E1EE18CB8F9;
 Mon, 14 Oct 2019 08:01:12 +0000 (UTC)
Received: from nbkamil.localnet (unknown [10.43.7.102])
 by smtp.corp.redhat.com (Postfix) with ESMTP id E0696600CE;
 Mon, 14 Oct 2019 08:01:10 +0000 (UTC)
From: Kamil Dudka <kdudka@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#37702: Suggestion for 'df' utility
Date: Mon, 14 Oct 2019 10:01:09 +0200
Message-ID: <1756559.dWJeaLVEuj@nbkamil>
In-Reply-To: <5f31c144-7c8e-2b23-8bcc-c8ff5af45000@HIDDEN>
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <9a1f38a4-1626-25c0-1feb-3d7dd87b66a2@HIDDEN>
 <5f31c144-7c8e-2b23-8bcc-c8ff5af45000@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2
 (mx1.redhat.com [10.5.110.63]); Mon, 14 Oct 2019 08:01:12 +0000 (UTC)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 209.132.183.28
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: 37702 <at> debbugs.gnu.org, =?ISO-8859-1?Q?P=E1draig?= Brady <P@HIDDEN>,
 Assaf Gordon <assafgordon@HIDDEN>, bug-coreutils@HIDDEN,
 John Pye <john.pye@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

On Monday, October 14, 2019 8:06:47 AM CEST Paul Eggert wrote:
> On 10/13/19 3:00 PM, Assaf Gordon wrote:
> > I'm not sure if it's easy to find a set of criteria
> > that would work well while having minimal unexpected side effects of
> > hiding
> > entries people in other systems do expect to see.
>=20
> No matter what we do (even if we do nothing), there will be problems.

This is not an excuse to introduce new problems.

> But doing
> nothing is clearly a bad idea, as the output of plain df is quite bad
> right now in typical use. We can do better than that, even if we cannot be
> perfect and we cause problems by changing defaults.

I would prefer _not_ to change the default behavior (including the behavior
of commonly used options).  There are downstream consumers who care about=20
compatibility in the first place.

Kamil

> > Out of curiosity,
> > can you share the output of the following commands on the same system?
>=20
> Sure, here it is:
>=20
> $ lsblk
> NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
> loop0           7:0    0 140.7M  1 loop  /snap/gnome-3-26-1604/90
> loop1           7:1    0  44.2M  1 loop  /snap/gtk-common-themes/1353
> loop2           7:2    0 149.9M  1 loop  /snap/gnome-3-28-1804/71
> loop3           7:3    0   3.7M  1 loop  /snap/gnome-system-monitor/100
> loop4           7:4    0  14.8M  1 loop  /snap/gnome-characters/317
> loop5           7:5    0   956K  1 loop  /snap/gnome-logs/73
> loop6           7:6    0 149.9M  1 loop  /snap/gnome-3-28-1804/67
> loop7           7:7    0   3.7M  1 loop  /snap/gnome-system-monitor/95
> loop8           7:8    0     4M  1 loop  /snap/gnome-calculator/406
> loop9           7:9    0  54.5M  1 loop  /snap/core18/1192
> loop10          7:10   0    89M  1 loop  /snap/core/7713
> loop11          7:11   0  42.8M  1 loop  /snap/gtk-common-themes/1313
> loop12          7:12   0  14.8M  1 loop  /snap/gnome-characters/296
> loop13          7:13   0 140.7M  1 loop  /snap/gnome-3-26-1604/92
> loop14          7:14   0  89.1M  1 loop  /snap/core/7917
> loop15          7:15   0   956K  1 loop  /snap/gnome-logs/81
> loop16          7:16   0   4.2M  1 loop  /snap/gnome-calculator/501
> loop17          7:17   0  54.4M  1 loop  /snap/core18/1144
> sda             8:0    0 111.8G  0 disk
> =E2=94=9C=E2=94=80sda1          8:1    0  96.9G  0 part  /
> =E2=94=9C=E2=94=80sda2          8:2    0     1K  0 part
> =E2=94=94=E2=94=80sda5          8:5    0    15G  0 part  [SWAP]
> sdb             8:16   0   2.7T  0 disk
> =E2=94=94=E2=94=80sdb1          8:17   0   2.7T  0 part
>    =E2=94=94=E2=94=80md127       9:127  0   2.7T  0 raid1
>      =E2=94=94=E2=94=80md127p1 259:0    0   2.7T  0 md    /home
> sdc             8:32   0   2.7T  0 disk
> =E2=94=94=E2=94=80sdc1          8:33   0   2.7T  0 part
>    =E2=94=94=E2=94=80md127       9:127  0   2.7T  0 raid1
>      =E2=94=94=E2=94=80md127p1 259:0    0   2.7T  0 md    /home
> sdd             8:48   1   7.5G  0 disk
> =E2=94=94=E2=94=80sdd1          8:49   1   7.5G  0 part  /media/eggert/B8=
27-D456
> sr0            11:0    1  1024M  0 rom
> $ df -x tmpfs -x devtmpfs -x squashfs
> Filesystem      1K-blocks       Used  Available Use% Mounted on
> /dev/sda1        99431552   11740452   82597212  13% /
> /dev/md127p1   2884021472 1326329584 1411168908  49% /home
> /dev/sdd1         7812864    4705136    3107728  61% /media/eggert/B827-D=
456






Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 14 Oct 2019 06:06:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 14 02:06:58 2019
Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJtVS-000713-FM
	for submit <at> debbugs.gnu.org; Mon, 14 Oct 2019 02:06:58 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1iJtVP-00070k-Lq
 for 37702 <at> debbugs.gnu.org; Mon, 14 Oct 2019 02:06:57 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 255601606A1;
 Sun, 13 Oct 2019 23:06:49 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id y3ariIcYcSxl; Sun, 13 Oct 2019 23:06:48 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 484E01606A4;
 Sun, 13 Oct 2019 23:06:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id e_j2GZWZbx2S; Sun, 13 Oct 2019 23:06:48 -0700 (PDT)
Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
 [23.242.74.103])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 18B661606A1;
 Sun, 13 Oct 2019 23:06:48 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Assaf Gordon <assafgordon@HIDDEN>
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
 <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
 <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
 <9a1f38a4-1626-25c0-1feb-3d7dd87b66a2@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <5f31c144-7c8e-2b23-8bcc-c8ff5af45000@HIDDEN>
Date: Sun, 13 Oct 2019 23:06:47 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <9a1f38a4-1626-25c0-1feb-3d7dd87b66a2@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37702
Cc: 37702 <at> debbugs.gnu.org, =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>,
 John Pye <john.pye@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 10/13/19 3:00 PM, Assaf Gordon wrote:

> I'm not sure if it's easy to find a set of criteria
> that would work well while having minimal unexpected side effects of hi=
ding=20
> entries people in other systems do expect to see.

No matter what we do (even if we do nothing), there will be problems. But=
 doing=20
nothing is clearly a bad idea, as the output of plain df is quite bad rig=
ht now=20
in typical use. We can do better than that, even if we cannot be perfect =
and we=20
cause problems by changing defaults.

> Out of curiosity,
> can you share the output of the following commands on the same system?

Sure, here it is:

$ lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0           7:0    0 140.7M  1 loop  /snap/gnome-3-26-1604/90
loop1           7:1    0  44.2M  1 loop  /snap/gtk-common-themes/1353
loop2           7:2    0 149.9M  1 loop  /snap/gnome-3-28-1804/71
loop3           7:3    0   3.7M  1 loop  /snap/gnome-system-monitor/100
loop4           7:4    0  14.8M  1 loop  /snap/gnome-characters/317
loop5           7:5    0   956K  1 loop  /snap/gnome-logs/73
loop6           7:6    0 149.9M  1 loop  /snap/gnome-3-28-1804/67
loop7           7:7    0   3.7M  1 loop  /snap/gnome-system-monitor/95
loop8           7:8    0     4M  1 loop  /snap/gnome-calculator/406
loop9           7:9    0  54.5M  1 loop  /snap/core18/1192
loop10          7:10   0    89M  1 loop  /snap/core/7713
loop11          7:11   0  42.8M  1 loop  /snap/gtk-common-themes/1313
loop12          7:12   0  14.8M  1 loop  /snap/gnome-characters/296
loop13          7:13   0 140.7M  1 loop  /snap/gnome-3-26-1604/92
loop14          7:14   0  89.1M  1 loop  /snap/core/7917
loop15          7:15   0   956K  1 loop  /snap/gnome-logs/81
loop16          7:16   0   4.2M  1 loop  /snap/gnome-calculator/501
loop17          7:17   0  54.4M  1 loop  /snap/core18/1144
sda             8:0    0 111.8G  0 disk
=E2=94=9C=E2=94=80sda1          8:1    0  96.9G  0 part  /
=E2=94=9C=E2=94=80sda2          8:2    0     1K  0 part
=E2=94=94=E2=94=80sda5          8:5    0    15G  0 part  [SWAP]
sdb             8:16   0   2.7T  0 disk
=E2=94=94=E2=94=80sdb1          8:17   0   2.7T  0 part
   =E2=94=94=E2=94=80md127       9:127  0   2.7T  0 raid1
     =E2=94=94=E2=94=80md127p1 259:0    0   2.7T  0 md    /home
sdc             8:32   0   2.7T  0 disk
=E2=94=94=E2=94=80sdc1          8:33   0   2.7T  0 part
   =E2=94=94=E2=94=80md127       9:127  0   2.7T  0 raid1
     =E2=94=94=E2=94=80md127p1 259:0    0   2.7T  0 md    /home
sdd             8:48   1   7.5G  0 disk
=E2=94=94=E2=94=80sdd1          8:49   1   7.5G  0 part  /media/eggert/B8=
27-D456
sr0            11:0    1  1024M  0 rom
$ df -x tmpfs -x devtmpfs -x squashfs
Filesystem      1K-blocks       Used  Available Use% Mounted on
/dev/sda1        99431552   11740452   82597212  13% /
/dev/md127p1   2884021472 1326329584 1411168908  49% /home
/dev/sdd1         7812864    4705136    3107728  61% /media/eggert/B827-D=
456




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 22:30:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 18:30:25 2019
Received: from localhost ([127.0.0.1]:37268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJmNd-0000I0-CU
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 18:30:25 -0400
Received: from mout.kundenserver.de ([212.227.126.134]:44009)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1iJmNb-0000Hk-2j
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 18:30:23 -0400
Received: from [192.168.101.10] ([91.1.223.46]) by mrelayeu.kundenserver.de
 (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id
 1MN67J-1icGYt2uxh-00J4He; Mon, 14 Oct 2019 00:29:58 +0200
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Assaf Gordon <assafgordon@HIDDEN>, Paul Eggert <eggert@HIDDEN>,
 =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>,
 John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
 <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
 <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
 <1b0b7d90-38c7-6bac-c2ba-f34fc5e0aa0e@HIDDEN>
 <b37d3723-84f9-5a57-f2d5-7058108a646a@HIDDEN>
From: Bernhard Voelker <mail@HIDDEN>
Autocrypt: addr=mail@HIDDEN; prefer-encrypt=mutual; keydata=
 mQENBFPirzMBCACyzYldTjQ4ufFOkByY5Nn5USb5GFoL48nWBwNHjd9KUbtRRNlQiPNKd6hK
 Gvd3BGi5aoFKA4ytfRk6jbAbW3jVb3R8wYaV08mOy4KVEKxqN4bxsXlMjNChXVR+rtKDmfI+
 oPTL+cPH2X6gW4W02IRbVw0uUhNm6zEedC/gNrY/mTlf1enZ46jxZ7BTUZaG+kx38UMISIMB
 zSzLRtdkwgmHj4jS3p1fF2cwRqLclIfMjKGpbNFPEXeXKWrCLcqHw78795eAR9q0YvrDkfIn
 GdDBwfb3VM4NdulwIFzvYZMSXvSbbyPLB5YkHU5aAWQHUse4WlfT5ccDpbzUYldRAvF9ABEB
 AAG0K0Jlcm5oYXJkIFZvZWxrZXIgPG1haWxAYmVybmhhcmQtdm9lbGtlci5kZT6JATkEEwEC
 ACMFAlPirzMCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRBGUC73lpFxle5wCACC
 dbs0QaJ0vR3Sff2cKdTk41rUq3YfWngsR///IOU0C5DdkePmCnJE/lUsUy0LRTxcUDLxQR+x
 QHU8ssRT0JUO9726dI3miy36UdsgmBYaOtLvQcidGmW1R7o0PYYf04+TFtyqKgngOUBPpMgR
 6o4UsQxy/OD4bN1WDqOgIjL+D/qJpkKmgp6L6+hhaBCpiOFKRmmV7YyQ3SqVlfQNiHs5ZtkR
 nXpIjgZARV+GllKucI17bO0CGmTJZ1tstVy0+W3DQT1lbBkTTc++5LONM99D3jjn23l1ocOp
 folR53F7I4cb2RNfT23v1I59RH37lB9wMOqrKj0UjYAC2YoPGQ3BuQENBFPirzMBCADXLWWp
 QihBldY6reca8ZKdc3T9qXEOa3akE3DWKztIBmNJhtYOjmpLYajQTkGa7UoJTnbmZE2Rn6ZE
 oNnvb0gcFNAIcY95KOI+bjOR8HEgh4cx2REXh6L6olIgyXqt/KFusE4wtVZAFxZl+30HzN6n
 D+1HvrjXxPJRX6MsIYOYyyX9/6OofwJK6QHODYGp8WL2olHDnmsXg4AT6Wlr7qKpKrQELlcF
 R4xkvdmgL/Ghw/tK0yJTxMIcewCCZWLPOXRmFRbvAadZWPAgVsJ63siNyUlVnVMSzDgTJl+s
 l/DMabXpqrJQx3/1Yy6mTaDs3XZT/wmBKaTLXx/LByaPxQQ7ABEBAAGJAR8EGAECAAkFAlPi
 rzMCGwwACgkQRlAu95aRcZWVPwgAqZT6iTXkoP37wYb41323RzhBcJ8JSk4cyBDBUXX0lMrM
 3qhiClKG7phpxVdu817Gwc6Hsecg7FfjQAV8MHQ0ZFeEFdk3b2rKBqfsStc+h49/xF3Fb+if
 CzR9qeQF82fMSxkg18++7hMcHCMO/hPZ/Q0xRi+lrSr2QKDJQuLzSyVU14TxrCkevZjEhtma
 VNvcJlJzCbiBXee9Fpc5jITUXPFG8E8dxqo1n+duOyIMgozrAnzP7X5V/Ob/Ozf/aGGX9+Jd
 inyfCX18nWcHALKMU/36Eua/ylalf/2c2YkBp9KCLVmGgPkUgW52EeRPgroIsiwu+rwCSV6Z
 UyCJ+OymCg==
Message-ID: <7c0e7ef8-c2e7-fd83-0356-1a4747636d18@HIDDEN>
Date: Mon, 14 Oct 2019 00:29:56 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.1.0
MIME-Version: 1.0
In-Reply-To: <b37d3723-84f9-5a57-f2d5-7058108a646a@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:uPRUyyYIyw6/LiH8fprOP+7Hb40HVRADKhm7lpFXvVdyoKePasL
 qdJ6du9sUcKAloiZowI2kjLw5RmELMhjc2e7ggMzeq61vHQyBLOlN8Gizj4GlARi9ZMozGm
 RgBz+rpqggKiFkXyGaq0RqBAMs0OzND08UKK4HTKQVISMXeCGwzlbgmCIWc7Z4X4Nzaj6Eq
 JxCKCMAjSreoD8NroKH1A==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:6sj0n1oqG7g=:2IC5ugm87nnhnsgokONh2O
 q2olbjMLrP/ErCG+FXnOuyZRbTZ5HeiJXBEXtpINgi5sUa/zAXSC7agOLq8zux/ABixCWs5lS
 CMJA2uzJ7yMN1EIYsoTKLCQlLXT/heixCIWwjwLwm0xY5gy1oR3sZIKZqJY+CWHGemwCosqPe
 BAVoWG8VaEGBojUF5pkYqaNQk+D5HpvwvuCarq7XbEAB/Xah4hrVTXZzkaTz2AypmmTOGrYSa
 t1yUr2T33vnlM84RlfUzrjOsKvmqRTcV5LrD3a/SSK0JInf2AajveVwYd5O03S0vKffNe0q2T
 wWmDMLA8Uoxm6efs+ga3P2cQT/b65oPQqBwJgV1RbuNVwUqONQ6KNmuA16kP7FXeZymypuYqt
 FB0jDfruWb+cbJMojQkq8rk7Uu/OoywTkT6tH6LhCZRglM52VzxtDh4z8Olh5qRirXIGaiu7Y
 8ZtFcfpkiNLyD4MQcwhoSdlLa3abc5sgqSpkz1uzEpvSThFqSaRswDp2Q1bnIOoss07ykLB4b
 7L91RpMT6HzwkAM7jqqt5PCS3kRRihGRBr5IFblKjusmPDD/SGlpNwfjTrxO4e1BIKMjkMmjH
 Aj6smVrm+yQH29XPAqkxn+qvZBTsBW1h6pgqYJ+nRKP1khqHhqT/eEb12G0/Lr/oaxg01+cwt
 cYAe1Lxz1EaQOCILqHB1X0/h1yQJ1BcXEmMI+FFTWmpyHJZOOhMRSRnCNCsCt17l8NCglL749
 bQaZGgsuFLsyePhpJC3GSG4tL6NJfDPMRafIPjljb0prMhEzUOR8BCoAnsj0160ccXNpYTXMv
 fMdUE0LAmF1v9AXPnlaltO6/9bD4WdaF08W+Lv7nL/I7hXE7tifpKtVNCfXutYpxoWkBbFmUb
 YMa1uxnlKVvOBPekeaRD6RMt8nWqGv5VYQcw/yUvE=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2019-10-14 00:13, Assaf Gordon wrote:
> Also in other systems where "/tmp" is a "tmpfs",
> users might want to see how much space is available.
> 
> If we hide it by default, they can of course use "df /tmp"
> or "df --all" - it's not about removing this option,
> it is just about making users' life harder or easier,
> and making unexpected changes.

I see the point ... and agree.

>> This seems to be a small change, and not satisfying the snap case.
> 
> Possibly hiding "squashfs" of readonly-mounts could get rid of those snaps?

Possibly.
But still the same question: how many users would like to see them
per default, and how many do not?
I would not like to argue for something like a ~/.dfrc, but it seems there
are a lot of different flavors of wishes out there.
Yet leaving the default seems to be a wise choice to me.

FWIW: df has the -x option, but if someone would use it in an alias like
"df -x sqashfs", then there's currently no chance to override it again:

  $ alias df='/usr/bin/df -x tmpfs'
  $ df -t tmpfs
  df: file system type 'tmpfs' both selected and excluded

Have a nice day,
Berny




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 22:14:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 18:14:06 2019
Received: from localhost ([127.0.0.1]:37263 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJm7p-0008Hy-Rw
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 18:14:06 -0400
Received: from mail-pl1-f172.google.com ([209.85.214.172]:44151)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1iJm7o-0008HL-Hm
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 18:14:04 -0400
Received: by mail-pl1-f172.google.com with SMTP id q15so7116463pll.11
 for <37702 <at> debbugs.gnu.org>; Sun, 13 Oct 2019 15:14:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=9ZuP3FyvP15rd/xD2YyCL/bWEQ0HSF7/pgJZ4ilXzxQ=;
 b=CTE4Z05m70MS+CmZztuYqOPPv42wWgFvT9z5hALMOQk1/A5ZUWx+MzcF6w7lyK/wFE
 7vUooCYS0KdcjVvUTC9BeJyV0qKR+tHJL9Iz1L0tFQj8wirX11tAD8NvXWlCafm0EDf7
 /3GWis6DxgI56NLQ84cvE3LotsLJtn7H+IQ9RbgUTpPIQZJQPwlmjdjOggQFWlCUHf83
 qKHE/st0a6Q55GtXf9CdQB2rHRq93wpfcX32ZvKKzQJ+QCRBvG0vjkD4ws83nVZxv2yL
 8nk1ea6nAEhAJuU+0Yepn8uWVbS5Mt5GZxCyqZfS3vpsZvcjIyFKLgcIGoGn1hUhzGvx
 K+hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=9ZuP3FyvP15rd/xD2YyCL/bWEQ0HSF7/pgJZ4ilXzxQ=;
 b=JFPNLnxuop9lKfW2ALMGuAFlpqQmluvL/oEn7D0R9nUf/qLKCX4HJdd12vPgyB3COG
 DYuvc9cHl2g/l51yKVLKE9t2YgXvm7eItwbzU99/92xl2nRAAIwgDE/IRFzUAG3ze6w8
 5JpbjSEocQid0SRKC/6RCYOJQc1EYIuYttlOUpU6kXsw/jtSnQCAiWcYHcHrvDNVgLJZ
 Qi/xRQ/lFwGfLQdmg65hrtXkXStjpAjM2hWKtfn4eGvFLeXjKkmNoVBLZ1IzWaCvbigT
 7rY7E9TBMGnaj85HV/NGSL9lvjyVv4x7Gt6IesQo3WkKwdSUoiMA5k6S5J6XEsCrp5yR
 PDOw==
X-Gm-Message-State: APjAAAUNcYsSICmz0WAEPZKBRozJyhPRoWWcQJWW/GCgHpSfaB20eJSA
 JUmWe/4n6vSjIbcAFVW2IXIKyoF1
X-Google-Smtp-Source: APXvYqyWComvuXZSlLSJPG0vDC6KDjxQ5WW8Kg7yemM5IolT6xJal37sORVT08Xpte6lhb3VQhQViA==
X-Received: by 2002:a17:902:a712:: with SMTP id
 w18mr27595945plq.304.1571004838047; 
 Sun, 13 Oct 2019 15:13:58 -0700 (PDT)
Received: from tomato.moose.housegordon.com (moose.housegordon.com.
 [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id 14sm16885868pfn.21.2019.10.13.15.13.56
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 13 Oct 2019 15:13:56 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Bernhard Voelker <mail@HIDDEN>,
 Paul Eggert <eggert@HIDDEN>, =?UTF-8?Q?P=c3=a1draig_Brady?=
 <P@HIDDEN>, John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
 <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
 <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
 <1b0b7d90-38c7-6bac-c2ba-f34fc5e0aa0e@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <b37d3723-84f9-5a57-f2d5-7058108a646a@HIDDEN>
Date: Sun, 13 Oct 2019 16:13:55 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <1b0b7d90-38c7-6bac-c2ba-f34fc5e0aa0e@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Bernhard,

On 2019-10-13 3:57 p.m., Bernhard Voelker wrote:
> On 2019-10-13 23:28, Paul Eggert wrote:
>> In any sane system there would be only
>> four lines of non-header output (for tmpfs etc, /, /home, and
>> /media/eggert/B827-D456), but df is outputting 28 lines.
> 
> What is so special about tmpfs so that you would like to see it?

As an interesting use-case (though not common),
I recently configured a raspberry PI device,
and wanted to mount as many locations on tmpfs as possible,
e.g. "/tmp" "/var/tmp", "/var/log" etc.

In was very useful in those cases to be able to see separate
tmpfs file system listed, with information about how big they
are and how much space was used.

Also in other systems where "/tmp" is a "tmpfs",
users might want to see how much space is available.

If we hide it by default, they can of course use "df /tmp"
or "df --all" - it's not about removing this option,
it is just about making users' life harder or easier,
and making unexpected changes.


I recently also encountered a change in a default behavior of
a program which I've been using a very long time - and it is *very*
frustrating to have something that worked "just fine" for so long
being changed.


> Here on my openSUSE:Tumbleweed system, I see the following:
> 
>    $ df -T
>    Filesystem     Type     1K-blocks      Used Available Use% Mounted on
[...]
>    /dev/loop0     ext2         31729     31729         0 100% /FULL_PARTITION_TMPDIR
[...]
> 
> (The /FULL_PARTITION_TMPDIR is used by a special coreutils test.)


That's an interesting case, where I would think you'd want to see it,
because you explicitly mounted it.

> 
> I think I could well live with adding 'devtmpfs' and 'tmpfs' to the
> pseudo file systems in gnulib's "mountlist.c".

I agree, but think this needs to be communicated very well,
and in advance - perhaps announce this change ahead of time to
the respective package maintainers of each distribution - just so
they'll know it's coming (and also have a way to revert it if they don't
like it).


> This seems to be a small change, and not satisfying the snap case.

Possibly hiding "squashfs" of readonly-mounts could get rid of those snaps?

regards,
   -assaf





Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 22:01:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 18:01:01 2019
Received: from localhost ([127.0.0.1]:37225 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJlvA-0007ul-Vg
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 18:01:01 -0400
Received: from mail-pg1-f182.google.com ([209.85.215.182]:44257)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1iJlv9-0007uY-RP
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 18:01:00 -0400
Received: by mail-pg1-f182.google.com with SMTP id e10so4918768pgd.11
 for <37702 <at> debbugs.gnu.org>; Sun, 13 Oct 2019 15:00:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=JPREmJViiWws21LMImiQystVoLGki2LXt9PPglQcimI=;
 b=uYMj8ZHZi84HyivbCSkSQ2jMMRlaFDtXc5gM+5eTgydv7rYpCE2vJdFf1XfoELz/fH
 f+Sw82RScoQanwSmgmn+60zGiGXEeWBgvh5Ok452VIyEPjAmBMXgFZTFM6KjqRiXDROI
 31hk6DGMoAo03xXJM6FJBYVyVsimZ+OPAq5UBdsC5Fg28mGav6GMfuch5QKtg8arboel
 bAnwjqcnuslnGkJ74Pmsb11xuGkpkQ9M0PnH0qxC88wPsGF+f6oQUsJk/0Hu71HvVMP8
 6b+EtYTeU0POLwUVE6myX0kcIlJ6R5oO6Ihyx/xactk8Wll2cNj7lBTm+QaQtFM6XnVi
 BeLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=JPREmJViiWws21LMImiQystVoLGki2LXt9PPglQcimI=;
 b=RTI9PC15GCPfucbkPuki0UyOwoEKk8PLYX2bZuXCqckMbbqxBUR9tw6uJiGoGsW6rq
 vwNNTUl7UfXWbx2FKU4n/7XFUJp88mOOFJ0BYEuMtar8pKtL3WpX93et98XptnSQrP5S
 UBMLE3Ey5qJIUy7gXak496TFxhUfKUYm/W6EeVE+OhSn1LNyTMBDdvHMD/76OJ6U/tAH
 rJ1k7vRENXY8S75fovxLVbGaJqoZ6WCMG0KWMDiJyWtfPcqrk4lL9FeCgDAo+nxo+3g5
 LKHyvJaQBxMCxmf/+KUJeI7rVpnOAy3rxLocREdSWaAf29CBvrq5SpOQI6XoAPhXv6Db
 h68Q==
X-Gm-Message-State: APjAAAUTTxr40f9RkZxC8nw4fQ1MeLr0ORh2PYoIOK8243QnIEjTpbWJ
 h/fhsfjK1slwG36xlydyqv+Je3Jl
X-Google-Smtp-Source: APXvYqz1RyT1ib8hEXYYBbHtUcGkVSS2h/hJR4JcI9v0BOe7ZvwOTI34YvBg6RTZraEMrLECYC+7JA==
X-Received: by 2002:a17:90a:b116:: with SMTP id
 z22mr31837201pjq.82.1571004053349; 
 Sun, 13 Oct 2019 15:00:53 -0700 (PDT)
Received: from tomato.moose.housegordon.com (moose.housegordon.com.
 [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id q76sm33250136pfc.86.2019.10.13.15.00.51
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 13 Oct 2019 15:00:52 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Paul Eggert <eggert@HIDDEN>, =?UTF-8?Q?P=c3=a1draig_Brady?=
 <P@HIDDEN>, John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
 <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
 <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <9a1f38a4-1626-25c0-1feb-3d7dd87b66a2@HIDDEN>
Date: Sun, 13 Oct 2019 16:00:51 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2019-10-13 3:28 p.m., Paul Eggert wrote:
[..]
> I mean c'mon, here's the output of 'df' on the Ubuntu 18.04.3 LTS 
> workstation I'm typing this particular message on. In any sane system 
> there would be only four lines of non-header output (for tmpfs etc, /, 
> /home, and /media/eggert/B827-D456), but df is outputting 28 lines. This 
> is ridiculous.
> 

It is certainly inconvenient if that's not what you are looking for
(and certainly most desktop users aren't).

But I'm not sure if it's easy to find a set of criteria
that would work well while having minimal unexpected side effects of 
hiding entries people in other systems do expect to see.

Out of curiosity,
can you share the output of the following commands on the same system?

     lsblk

     df -x tmpfs -x devtmpfs -x squashfs


Thanks,
  - assaf




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 21:57:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 17:57:52 2019
Received: from localhost ([127.0.0.1]:37215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJls8-0007na-5e
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 17:57:52 -0400
Received: from mout.kundenserver.de ([212.227.17.13]:39671)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1iJls6-0007nL-O8
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 17:57:51 -0400
Received: from [192.168.101.10] ([91.1.223.46]) by mrelayeu.kundenserver.de
 (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id
 1Mjjzx-1hd2P02h8V-00lDyM; Sun, 13 Oct 2019 23:57:25 +0200
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Paul Eggert <eggert@HIDDEN>, Assaf Gordon <assafgordon@HIDDEN>,
 =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>,
 John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
 <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
 <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
From: Bernhard Voelker <mail@HIDDEN>
Autocrypt: addr=mail@HIDDEN; prefer-encrypt=mutual; keydata=
 mQENBFPirzMBCACyzYldTjQ4ufFOkByY5Nn5USb5GFoL48nWBwNHjd9KUbtRRNlQiPNKd6hK
 Gvd3BGi5aoFKA4ytfRk6jbAbW3jVb3R8wYaV08mOy4KVEKxqN4bxsXlMjNChXVR+rtKDmfI+
 oPTL+cPH2X6gW4W02IRbVw0uUhNm6zEedC/gNrY/mTlf1enZ46jxZ7BTUZaG+kx38UMISIMB
 zSzLRtdkwgmHj4jS3p1fF2cwRqLclIfMjKGpbNFPEXeXKWrCLcqHw78795eAR9q0YvrDkfIn
 GdDBwfb3VM4NdulwIFzvYZMSXvSbbyPLB5YkHU5aAWQHUse4WlfT5ccDpbzUYldRAvF9ABEB
 AAG0K0Jlcm5oYXJkIFZvZWxrZXIgPG1haWxAYmVybmhhcmQtdm9lbGtlci5kZT6JATkEEwEC
 ACMFAlPirzMCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRBGUC73lpFxle5wCACC
 dbs0QaJ0vR3Sff2cKdTk41rUq3YfWngsR///IOU0C5DdkePmCnJE/lUsUy0LRTxcUDLxQR+x
 QHU8ssRT0JUO9726dI3miy36UdsgmBYaOtLvQcidGmW1R7o0PYYf04+TFtyqKgngOUBPpMgR
 6o4UsQxy/OD4bN1WDqOgIjL+D/qJpkKmgp6L6+hhaBCpiOFKRmmV7YyQ3SqVlfQNiHs5ZtkR
 nXpIjgZARV+GllKucI17bO0CGmTJZ1tstVy0+W3DQT1lbBkTTc++5LONM99D3jjn23l1ocOp
 folR53F7I4cb2RNfT23v1I59RH37lB9wMOqrKj0UjYAC2YoPGQ3BuQENBFPirzMBCADXLWWp
 QihBldY6reca8ZKdc3T9qXEOa3akE3DWKztIBmNJhtYOjmpLYajQTkGa7UoJTnbmZE2Rn6ZE
 oNnvb0gcFNAIcY95KOI+bjOR8HEgh4cx2REXh6L6olIgyXqt/KFusE4wtVZAFxZl+30HzN6n
 D+1HvrjXxPJRX6MsIYOYyyX9/6OofwJK6QHODYGp8WL2olHDnmsXg4AT6Wlr7qKpKrQELlcF
 R4xkvdmgL/Ghw/tK0yJTxMIcewCCZWLPOXRmFRbvAadZWPAgVsJ63siNyUlVnVMSzDgTJl+s
 l/DMabXpqrJQx3/1Yy6mTaDs3XZT/wmBKaTLXx/LByaPxQQ7ABEBAAGJAR8EGAECAAkFAlPi
 rzMCGwwACgkQRlAu95aRcZWVPwgAqZT6iTXkoP37wYb41323RzhBcJ8JSk4cyBDBUXX0lMrM
 3qhiClKG7phpxVdu817Gwc6Hsecg7FfjQAV8MHQ0ZFeEFdk3b2rKBqfsStc+h49/xF3Fb+if
 CzR9qeQF82fMSxkg18++7hMcHCMO/hPZ/Q0xRi+lrSr2QKDJQuLzSyVU14TxrCkevZjEhtma
 VNvcJlJzCbiBXee9Fpc5jITUXPFG8E8dxqo1n+duOyIMgozrAnzP7X5V/Ob/Ozf/aGGX9+Jd
 inyfCX18nWcHALKMU/36Eua/ylalf/2c2YkBp9KCLVmGgPkUgW52EeRPgroIsiwu+rwCSV6Z
 UyCJ+OymCg==
Message-ID: <1b0b7d90-38c7-6bac-c2ba-f34fc5e0aa0e@HIDDEN>
Date: Sun, 13 Oct 2019 23:57:22 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.1.0
MIME-Version: 1.0
In-Reply-To: <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:BloNUkcw44EdhVey/e9jqncK19zvK5h/3/CAXkZ6FMdMwYyoPUX
 32PQLOcSlqcU4PUY5LRaGlSg6sRMh4PVxscT6HkOwqzT7sipZArCS7wI6YYN+TH+cn4QmMH
 GZ3XnIiM71tMmqbMYPM9aWTjmVrUH6PdjTDgTwoZDQ1EhiKF+c+yzsVhFVR3zVMqLucs88s
 4ctf6qkksgqVk20QhnCIA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:YXf7Kv+0y/M=:sZFLuXeuuULY1uQ0K6qzil
 C/eNPsTAAtt+xQIJo1MLJiUyx6nVRtoZsq2JrUaoQwOlJjVLxBHL5iqgQ2t7ENve62gZo8P2d
 BH4A4/Q25p0/fAI8VeC1Q+1RZhKf1+btxOu7BXWeU13UYrXQL88ugx+T8R2yX8jKQK1IK42wd
 aQyfSZ5IGjICs+zH16BDr/+NShgxFDkjuWBXI0aCUIze8vQVAo3iftVvdtezoiPs3BE6FYjH0
 Leot8jVESRz5Y74QXTTTvqDDZ1pGV6xoSkq40811iaLlIiUcvyhPDLqVfTMPSXYhWc/Tnmv/P
 zvEpr2kiHquy2uhRBse2xHcYxwIv783rifConXSM6H+xEmOzJyHaY88eHtfamgTwXBCgRxvX5
 FoAOnI5e4Uhxq4zfRsGJUSbQeUp6brIXhx+5PSc/emaTyMxmK9iv3O1Flhyjv5lY92XjZ8+p2
 /gTMURdE/KlKvLkY+atH5fRUoQ4kIfeY6XI8Tig7CGJhbgeCf4YEmj+RVpCoFKGuHR8zFGD+Q
 ODLwK39DjjsSNBRlSn6IKDjBHVuOudIOBolLAdJMHnrJEFsQwdBHaqKcyJU2jKIaEITGhBEft
 xWBu9aZNSm781Cf8p17qZSc8Ne0vSgYYFRf1W1pkwu1bB02x/a4NM5AQSq3uNibbt8dVgxj5t
 y2btfodtBCwZQE0k8K0UjZ+opzUc1ccNQd1HNGSayvcQfsVG+4xm9GzjI8/KgUZcYtG7iasFA
 CKFKsh93GWTEya4vR4VkbuYH8WV0Ysqp6UPIyMfJDko1SM4VykusHLvHlogiRHQjZ2aQBNm96
 FhrQ0/zHUKomP8tAfwRLHTOIcfqP38EmX4+bDOP8jYtKwKCtq3Z/CtOtk8++t7uQCGxetgws3
 OlG5/4lGvlM6ZqPIX5UUfmmjNJ/EbibU7MHUYKWmI=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2019-10-13 23:28, Paul Eggert wrote:
> In any sane system there would be only 
> four lines of non-header output (for tmpfs etc, /, /home, and 
> /media/eggert/B827-D456), but df is outputting 28 lines.

What is so special about tmpfs so that you would like to see it?

Here on my openSUSE:Tumbleweed system, I see the following:

  $ df -T
  Filesystem     Type     1K-blocks      Used Available Use% Mounted on
  devtmpfs       devtmpfs  10187924         8  10187916   1% /dev
  tmpfs          tmpfs     10199048     45788  10153260   1% /dev/shm
  tmpfs          tmpfs     10199048     18036  10181012   1% /run
  tmpfs          tmpfs     10199048         0  10199048   0% /sys/fs/cgroup
  /dev/sda2      ext4      20511312  12141864   7304488  63% /
  /dev/loop0     ext2         31729     31729         0 100% /FULL_PARTITION_TMPDIR
  /dev/sda5      ext4     619142920 390088908 229037628  64% /media/big_data
  /dev/sda3      ext3     103085876  90714416   7128248  93% /home
  tmpfs          tmpfs      2039808        20   2039788   1% /run/user/1000

(The /FULL_PARTITION_TMPDIR is used by a special coreutils test.)

I think I could well live with adding 'devtmpfs' and 'tmpfs' to the
pseudo file systems in gnulib's "mountlist.c".

This seems to be a small change, and not satisfying the snap case.
Yet, I agree with Assaf that changing the defaults has to be done
with caution.  Eliding r/o filesystems or where usage<1% doesn't
look like such.

Have a nice day,
Berny




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 21:28:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 17:28:22 2019
Received: from localhost ([127.0.0.1]:37187 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJlPa-0004z2-G2
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 17:28:22 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33732)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1iJlPY-0004ym-5p
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 17:28:21 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 121DF160694;
 Sun, 13 Oct 2019 14:28:14 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id pyEkrwUo2Aeg; Sun, 13 Oct 2019 14:28:13 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 36CE816069A;
 Sun, 13 Oct 2019 14:28:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id uufkMl4bXlvR; Sun, 13 Oct 2019 14:28:13 -0700 (PDT)
Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
 [23.242.74.103])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0568F160694;
 Sun, 13 Oct 2019 14:28:12 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Assaf Gordon <assafgordon@HIDDEN>, =?UTF-8?Q?P=c3=a1draig_Brady?=
 <P@HIDDEN>, John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
 <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <30ea6d6c-3c21-976b-9408-fc6b46e3f067@HIDDEN>
Date: Sun, 13 Oct 2019 14:28:12 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 10/13/19 2:11 PM, Assaf Gordon wrote:
> 
> This thread originated by a request to "clean up" the output on newer
> ubuntu machines which use "snap" packages as /dev/loopN .
> 
> Let's not turn that into a drastic change

It could certainly be multiple sets of patches. But let's face it, df's utility 
for ordinary interactive use has degraded significantly with time due to all the 
random filesystems people have been adding, and we shouldn't keep our heads in 
the sands about this. df's default needs to change, one way or another.

I mean c'mon, here's the output of 'df' on the Ubuntu 18.04.3 LTS workstation 
I'm typing this particular message on. In any sane system there would be only 
four lines of non-header output (for tmpfs etc, /, /home, and 
/media/eggert/B827-D456), but df is outputting 28 lines. This is ridiculous.

Filesystem      1K-blocks       Used  Available Use% Mounted on
udev              7644704          0    7644704   0% /dev
tmpfs             1533620       1924    1531696   1% /run
/dev/sda1        99431552   11740340   82597324  13% /
tmpfs             7668096      33212    7634884   1% /dev/shm
tmpfs                5120          8       5112   1% /run/lock
tmpfs             7668096          0    7668096   0% /sys/fs/cgroup
/dev/loop0         144128     144128          0 100% /snap/gnome-3-26-1604/90
/dev/loop1          45312      45312          0 100% /snap/gtk-common-themes/1353
/dev/loop2         153600     153600          0 100% /snap/gnome-3-28-1804/71
/dev/loop4          15104      15104          0 100% /snap/gnome-characters/317
/dev/loop6         153600     153600          0 100% /snap/gnome-3-28-1804/67
/dev/loop5           1024       1024          0 100% /snap/gnome-logs/73
/dev/loop3           3840       3840          0 100% /snap/gnome-system-monitor/100
/dev/loop10         91264      91264          0 100% /snap/core/7713
/dev/loop7           3840       3840          0 100% /snap/gnome-system-monitor/95
/dev/loop8           4224       4224          0 100% /snap/gnome-calculator/406
/dev/loop9          55808      55808          0 100% /snap/core18/1192
/dev/loop11         43904      43904          0 100% /snap/gtk-common-themes/1313
/dev/loop12         15104      15104          0 100% /snap/gnome-characters/296
/dev/loop13        144128     144128          0 100% /snap/gnome-3-26-1604/92
/dev/loop14         91264      91264          0 100% /snap/core/7917
/dev/loop15          1024       1024          0 100% /snap/gnome-logs/81
/dev/loop17         55808      55808          0 100% /snap/core18/1144
/dev/loop16          4352       4352          0 100% /snap/gnome-calculator/501
/dev/md127p1   2884021472 1326255744 1411242748  49% /home
tmpfs             1533616         16    1533600   1% /run/user/121
tmpfs             1533616         60    1533556   1% /run/user/1000
/dev/sdd1         7812864    4705136    3107728  61% /media/eggert/B827-D456




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 21:11:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 17:11:13 2019
Received: from localhost ([127.0.0.1]:37177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJl8z-0004X9-Kb
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 17:11:13 -0400
Received: from mail-pl1-f194.google.com ([209.85.214.194]:38593)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1iJl8y-0004Ww-3u
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 17:11:12 -0400
Received: by mail-pl1-f194.google.com with SMTP id w8so7079869plq.5
 for <37702 <at> debbugs.gnu.org>; Sun, 13 Oct 2019 14:11:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=NUmXeQy+umlJgpffKzyrI01lC4mzKfF/AhNbiDiw8II=;
 b=g4FpSQ0jieIkTRJUPEiq2LjJEDvrPYRwYi2zCg3qPP+R0O6hiDTXRJDgIpn4vQuRVS
 9AcB0xRcBeXYnuxWYi/nqWjNqYWV5KjEWeMu8SSfHJQvRd7P8sgrInXTrwknwPOfAZ8h
 xSJmxL8KJj65KbniAKiKouwmxc9I6RgWvDrHYtTaLLQXJhKyhSuLRpHCrfGo6ZCjmi7l
 hWY2ol5/m8e6K1wHOiWfukrbwPqT/k1dRbW006sTibAUeDSM0B2Zk5uzMTKdz99bq3SF
 +SS55+IFy7hp+k5z/Dm8BhCEPrJWyh7qj+GSVCK2C4fGoMJ7Sa3c2stvz+lu94LTzmAI
 h2IA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=NUmXeQy+umlJgpffKzyrI01lC4mzKfF/AhNbiDiw8II=;
 b=VVHYV6F/6WuW0j3j8vl3KfQHV1ZE4VfF3IZP01v2XeHr9NMijQPi4YwDL0+grE9Urr
 SLVNEp1VEi8hYHAphHi3Ev8qgHsckCrs/tP2X2EECf9Sn3Sajw1Sm472m8HtugH7egJD
 bFNDr20jOEsVtCbD0lrU7xy/iBmO9vGrASYRMNb5aUNatMEmAeMuluIdOq4fW7V93Fe4
 46CkvyGQOALw172rSsXYxigGN7LyqCzPrRdRzxPF4UK8oQxgWsauFHvwgy/xi6Ofn2c5
 zAzgPelS0JbUtV1LyfKrjaPyEo4kQwXPHdxJhBbSmIP0qpvWrXlyS/H3eyVhKMLhh0R8
 ujbg==
X-Gm-Message-State: APjAAAX+9FnKGs5SLpnwHWJitWrG2cYDDoMtHe6kYn1ICCLI8fZgyoxT
 Hf5NDuuQuiuAKPYs3VE33/rT2FkY
X-Google-Smtp-Source: APXvYqxoLk+prWj1dcUnn7XgsBs2GmEUSUWEG/D6+BFRyeUBprGlF4wn1JkRm0lcN5lbR+MIkUqXdQ==
X-Received: by 2002:a17:902:7798:: with SMTP id
 o24mr11448863pll.108.1571001065285; 
 Sun, 13 Oct 2019 14:11:05 -0700 (PDT)
Received: from tomato.moose.housegordon.com (moose.housegordon.com.
 [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id j16sm13840806pje.6.2019.10.13.14.11.03
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 13 Oct 2019 14:11:04 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Paul Eggert <eggert@HIDDEN>, =?UTF-8?Q?P=c3=a1draig_Brady?=
 <P@HIDDEN>, John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
 <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <0c273764-8748-2e43-75cb-5195d1a3989f@HIDDEN>
Date: Sun, 13 Oct 2019 15:11:02 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi all,

On 2019-10-13 2:27 p.m., Paul Eggert wrote:
> On 10/13/19 2:41 AM, Pádraig Brady wrote:
>> I wonder could we key (also) on used==0||available==0.
> 
> Yes, looking at the sample output I gave earlier, I'd say we could by 
> default drop filesystems where usage is 1% or less. That would solve the 
> problem for my workstation. This is roughly akin to the "used==0" test 
> you're suggesting.
> 

I would humbly suggest caution with such unexpected user-facing changes
to the default output of 'df' - learning the lessons from changing the 
quotes in 'ls'.

Countless users have been using 'df' in their own ways, and have gotten
used to certain outputs.

This thread originated by a request to "clean up" the output on newer
ubuntu machines which use "snap" packages as /dev/loopN .

Let's not turn that into a drastic change that will affect many other
existing systems - the users on other systems did not ask for any changes.

---

Specifically for "default drop filesystems where usage is 1% or less" -
I can think of few cases off the top of my head where this would be
extremely confusing:

- I recently installed a 33TB raid file system. The usage on that system
is at %1 and will stay like so for at least several days.

- Amazon cloud services (AWS) offers an NFS4 service (they call it 
"EFS") that has reported size of 8 exabytes. There too usage could be at 
%1 for a long long time.

---


For cases where I want to list only the "real" storage, I typically use
an alias such as:

    alias dff='df -h -x tmpfs -x devtmpfs'

And it would be very easy and least disruptive to recommend
to ubuntu users to add "-x squashfs" or another file system to ignore.


Perhaps we can come up with a recommended list of "lesser" file systems
to ignore (or conditions such as read-only file
systems) and add it as a new option, but please let's not make it the
default.



My two cents,
  - assaf





Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 20:27:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 16:27:14 2019
Received: from localhost ([127.0.0.1]:37121 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJkSQ-0007hZ-Dh
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 16:27:14 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1iJkSO-0007hI-2B
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 16:27:13 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 96A4A160690;
 Sun, 13 Oct 2019 13:27:05 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id gxB_WdTbPRF2; Sun, 13 Oct 2019 13:27:04 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id AB734160694;
 Sun, 13 Oct 2019 13:27:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id fR9ECPRMvCTO; Sun, 13 Oct 2019 13:27:04 -0700 (PDT)
Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
 [23.242.74.103])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 83CE6160690;
 Sun, 13 Oct 2019 13:27:04 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>,
 John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
 <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <9d4881bb-9d17-9066-b77c-2424fffe95a9@HIDDEN>
Date: Sun, 13 Oct 2019 13:27:03 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 10/13/19 2:41 AM, P=C3=A1draig Brady wrote:
> I wonder could we key (also) on used=3D=3D0||available=3D=3D0.

Yes, looking at the sample output I gave earlier, I'd say we could by def=
ault=20
drop filesystems where usage is 1% or less. That would solve the problem =
for my=20
workstation. This is roughly akin to the "used=3D=3D0" test you're sugges=
ting.

(I don't know if this would address the problem of small snap loop device=
s. I=20
haven't seen sample df output from that.)

What you mean by "available=3D=3D0"? Actual zero-size filesystems, or fil=
esystems=20
whose size is less than some epsilon? What would the epsilon be? Can you =
give an=20
example?




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 13 Oct 2019 09:42:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 05:42:01 2019
Received: from localhost ([127.0.0.1]:34907 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJaO1-0005z9-Bs
	for submit <at> debbugs.gnu.org; Sun, 13 Oct 2019 05:42:01 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:43210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1iJaNz-0005yw-8E
 for 37702 <at> debbugs.gnu.org; Sun, 13 Oct 2019 05:41:59 -0400
Received: from localhost.localdomain
 (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net [86.42.14.227])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 9EBCEA379;
 Sun, 13 Oct 2019 10:41:57 +0100 (IST)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: Paul Eggert <eggert@HIDDEN>, John Pye <john.pye@HIDDEN>,
 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
 <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <71c442ea-141d-f188-c39c-d1a40ccea9c0@HIDDEN>
Date: Sun, 13 Oct 2019 10:41:57 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101
 Thunderbird/70.0
MIME-Version: 1.0
In-Reply-To: <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 11/10/2019 20:56, Paul Eggert wrote:
> On 10/11/19 11:20 AM, Pádraig Brady wrote:
>>
>> if you want to exclude nested file systems like that,
>> you could try:
>>
>>     alias df='df -x squashfs'
> 
> On my Fedora 30 workstation that option doesn't make any difference.
> Regardless of whether '-x squashfs' is used, I see this output from 'df':
> 
> Filesystem      1K-blocks      Used  Available Use% Mounted on
> devtmpfs          4065704         0    4065704   0% /dev
> tmpfs             4081560     36616    4044944   1% /dev/shm
> tmpfs             4081560      1696    4079864   1% /run
> tmpfs             4081560         0    4081560   0% /sys/fs/cgroup
> /dev/sda5        59614116  16910684   39645412  30% /
> tmpfs             4081560       124    4081436   1% /tmp
> /dev/sda2      1849433716 207781976 1547682948  12% /home
> /dev/sda1         5095040    244468    4572044   6% /boot
> tmpfs              816312        60     816252   1% /run/user/1000
> 
> and most of these lines are useless.
> 
> For many years we've put up with the problem of too many filesystems in
> the default plain 'df' output, and now's as good a time as any to fix
> that. On my workstation there should be only four lines of information,
> one each for /, /home, /boot, and the shared tmpfs area.
> 
> Presumably readonly filesystems should also be omitted by default, since
> they're not something people ordinarily care about.
> 
> We can add a flag or two for the rare people who want to see these
> normally-useless lines.

What df tries to show now is a deduplicated list of file systems
that have consumable storage. Maybe read-only could be valid to drop
by default, but I've worked on systems where certain file-systems
were read-only most of the time, but they were consumable.
I wonder could we key (also) on used==0||available==0.

cheers,
Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 11 Oct 2019 19:56:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 15:56:30 2019
Received: from localhost ([127.0.0.1]:60402 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iJ11a-00039n-22
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 15:56:30 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56854)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1iJ11Y-00039W-49
 for 37702 <at> debbugs.gnu.org; Fri, 11 Oct 2019 15:56:28 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id AE81E160655;
 Fri, 11 Oct 2019 12:56:21 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id l1BFIjM9qObl; Fri, 11 Oct 2019 12:56:21 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id F319E160659;
 Fri, 11 Oct 2019 12:56:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id q-veCnSdraBa; Fri, 11 Oct 2019 12:56:20 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D84EC160655;
 Fri, 11 Oct 2019 12:56:20 -0700 (PDT)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>,
 John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
 <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <fb7c6799-26e2-7020-5ad3-b708de569ac2@HIDDEN>
Date: Fri, 11 Oct 2019 12:56:20 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.1.0
MIME-Version: 1.0
In-Reply-To: <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 10/11/19 11:20 AM, P=C3=A1draig Brady wrote:
>=20
> if you want to exclude nested file systems like that,
> you could try:
>=20
>  =C2=A0 alias df=3D'df -x squashfs'

On my Fedora 30 workstation that option doesn't make any difference.=20
Regardless of whether '-x squashfs' is used, I see this output from 'df':

Filesystem      1K-blocks      Used  Available Use% Mounted on
devtmpfs          4065704         0    4065704   0% /dev
tmpfs             4081560     36616    4044944   1% /dev/shm
tmpfs             4081560      1696    4079864   1% /run
tmpfs             4081560         0    4081560   0% /sys/fs/cgroup
/dev/sda5        59614116  16910684   39645412  30% /
tmpfs             4081560       124    4081436   1% /tmp
/dev/sda2      1849433716 207781976 1547682948  12% /home
/dev/sda1         5095040    244468    4572044   6% /boot
tmpfs              816312        60     816252   1% /run/user/1000

and most of these lines are useless.

For many years we've put up with the problem of too many filesystems in=20
the default plain 'df' output, and now's as good a time as any to fix=20
that. On my workstation there should be only four lines of information,=20
one each for /, /home, /boot, and the shared tmpfs area.

Presumably readonly filesystems should also be omitted by default, since=20
they're not something people ordinarily care about.

We can add a flag or two for the rare people who want to see these=20
normally-useless lines.




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at 37702 <at> debbugs.gnu.org:


Received: (at 37702) by debbugs.gnu.org; 11 Oct 2019 18:20:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 14:20:05 2019
Received: from localhost ([127.0.0.1]:60294 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIzWH-00065H-Ab
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 14:20:05 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:42522)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1iIzWF-00064p-9m
 for 37702 <at> debbugs.gnu.org; Fri, 11 Oct 2019 14:20:03 -0400
Received: from localhost.localdomain
 (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net [86.42.14.227])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 8FBB6998B;
 Fri, 11 Oct 2019 19:20:01 +0100 (IST)
Subject: Re: bug#37702: Suggestion for 'df' utility
To: John Pye <john.pye@HIDDEN>, 37702 <at> debbugs.gnu.org
References: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <97cea4ec-2e85-9019-1d0b-019a8cd653b1@HIDDEN>
Date: Fri, 11 Oct 2019 19:20:01 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101
 Thunderbird/70.0
MIME-Version: 1.0
In-Reply-To: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37702
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 11/10/2019 08:55, John Pye wrote:
> Hi there
> 
> I got this email address from the 'df' man page. Hope it's still active
> and the right place for feedback.
> 
> With recent changes to Ubuntu and the increasing use of 'snap' packaging
> for all sorts of things, the 'df' utility output is now quite jumbled
> and messy. My fairly normal system now has 17 /dev/loopNN mounts for
> various different software packages. I would rather not see these things
> by default. Or at least, I would like to have a convenient
> single-character flag that allows me to suppress those mounts from my
> 'df' output.
> 
> One useful approach would be a flag that suppresses read-only
> filesystems. Another approach would be to suppress read-only filesystems
> that have no free space. Perhaps there are other good approaches too.
> 
> I don't know if this issue is also relevant for 'docker' or not.

Well if you want to exclude nested file systems like that,
you could try:

   alias df='df -x squashfs'

cheers,
Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Oct 2019 14:31:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 10:31:39 2019
Received: from localhost ([127.0.0.1]:60110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIvx9-00047N-PH
	for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 10:31:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:46497)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <john.pye@HIDDEN>) id 1iIplv-0006rl-I7
 for submit <at> debbugs.gnu.org; Fri, 11 Oct 2019 03:55:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38129)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <john.pye@HIDDEN>) id 1iIplt-0005zG-AP
 for bug-coreutils@HIDDEN; Fri, 11 Oct 2019 03:55:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <john.pye@HIDDEN>) id 1iIplp-0001LG-LD
 for bug-coreutils@HIDDEN; Fri, 11 Oct 2019 03:55:31 -0400
Received: from mail2-drop-p1.anu.edu.au ([130.56.64.27]:54060)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <john.pye@HIDDEN>) id 1iIplm-0001In-Jl
 for bug-coreutils@HIDDEN; Fri, 11 Oct 2019 03:55:27 -0400
Received: from mailpmx1.anu.edu.au (snatpool01-4.anu.edu.au [130.56.66.108])
 by mail2-drop-p1.anu.edu.au (8.14.7/8.14.7) with ESMTP id x9B7tIbp045936
 for <bug-coreutils@HIDDEN>; Fri, 11 Oct 2019 18:55:18 +1100
Received: from mailpmx1.anu.edu.au (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 9499E80BAD
 for <bug-coreutils@HIDDEN>; Fri, 11 Oct 2019 18:55:18 +1100 (AEDT)
Received: from mail2-smtp-p1.anu.edu.au (mail2-smtp-p1.anu.edu.au
 [10.40.70.15])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mailpmx1.anu.edu.au (Postfix) with ESMTPS id 6F08780D30
 for <bug-coreutils@HIDDEN>; Fri, 11 Oct 2019 18:55:18 +1100 (AEDT)
Received: from [192.168.1.10] (snatpool01-2.anu.edu.au [130.56.66.106])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested) (Authenticated sender: u3627027)
 by mail2-smtp-p1.anu.edu.au (Postfix) with ESMTPSA id 9F6B2204B076
 for <bug-coreutils@HIDDEN>; Fri, 11 Oct 2019 18:55:17 +1100 (AEDT)
To: bug-coreutils@HIDDEN
From: John Pye <john.pye@HIDDEN>
Subject: Suggestion for 'df' utility
Openpgp: preference=signencrypt
Autocrypt: addr=john.pye@HIDDEN; keydata=
 xsDNBFtm2A8BDAC9talFOtX5ZeIgU6ATXMKARZlDWOdAjevuxRwR/O3e3bXh6kPwnUfkZHH5
 1Ppr8O7oNWRtwdrxAQJRmngngVRrho+5XAmNPHfky51mDMQxJoY0qo0DxF9D5uA3r6ij79M9
 WzipvzccuAQm1hs8gcd7Mj25KbIZwxk0ZpWThPnUVyVgYvr9xekYTkZJDkYAvpNPVovn9HAV
 m3ed9ILe8b0DRbL/MjRfDa+XDlr/ZIAkcEoJD59EQk2S/OBrcpzzqS7th5qqXe1vTX3FxrPh
 ryXKyXMYQkQde7YadkEW1QbkXE1eCLvx6cWguOVsYyKk4BuoU/CXX2Kjf7I0NrpAxNOlNI25
 G/UJ15mdOdMJ6aC0oeXSDtLEzCvCSf63jiclFq4IVNqIoYgNPaQo/xUovliuaCeC68MuMMCX
 yZQTdGBF+leA+ONPvpIx854thQlQIvPJc1Gl5c/ZUfzsgbQR3bQwsn43qDb0OkJMioQJQCqk
 bOjFBsgiLZ8TNkXyPlL+ruMAEQEAAc0eSm9obiBQeWUgPGpvaG4ucHllQGFudS5lZHUuYXU+
 wsEUBBMBCgA+FiEE9/4AfDFzDHUx21VKvL8r/LgxzFwFAltm2A8CGwMFCQPCZwAFCwkIBwIG
 FQoJCAsCBBYCAwECHgECF4AACgkQvL8r/LgxzFzztgv+NCoIm+eudkctdhV1GlGifSquylKK
 DLYHmwtUG6l6Ng/wGLu6dpf4HNBTAJPV41bYoMc9kjMMQAY82qkW0Ug4rssxqvoSBEKLgy90
 SlbAwaN8VEacBqcLZ7GLtbw+wIVZBjzC3kVgFZDppxgTsVmD51O0Aw0KE5F2B+S+xPLv059e
 82pljOVAcdzebiNM81DlnbNU4tpZ83KGeItrZq0UxIrB7vtElpaf3R8dIZZJ64e7tXUf84OZ
 WsfigW379My2KplfvISnXZmiZ6vCmR4FMgwy3UOm5EfHTiDZliHjnEoXW6GeXs3N24i9Uazu
 VzwQ2+FaxrjsAs2sV3FW3WNy4utkt8mJ6y6w7kF2hK2ab5V13q5BfmibaIijlrdZ9NR3F7y6
 lPss67H5SpF5RHzSxBSUXo+pctqhRcaLRSJ+skGk+Xa8iWH2ZLityi8nKX2hlz7imfJrJckQ
 7rw2chr0TPppKLGwi1FmWv0ewzchQqmDGWGQMMAcZIN9zacXVr0CzsDNBFtm2A8BDAC4yLcZ
 4hbf9/aaudOZSMc67flI1xsjht6DdzOePlQXkFIbLYIeFPPkHuBhInsCsMEx8Kj4CB9jnTca
 qvYs8A8d0WrPGzAIFLKjanB0neMeDOYhToT4akgyGvOfp2fNrBQJbtvNcVApH5Mrk4Io4ip1
 mbUb9SjspRTDj5k/GsgwfI2Kd9ABuSkxCH+njsPQWPXS1pTC1igEQyb4FOha/KzvrddL4NFP
 hNxO9boIMEQlAgmTRbZYRpxXGG1MufD5x/xHwV8MYhDs9K89826rZtKCJOnTVlXDFezkkMt6
 FCkpSCIi/qLwu+Gd5HXpMEKKuNfeZDmEA7zPe2+3mpUHBQ8MVepDTHp0wMJx0I2iVGxAi+8J
 Eee109Q6Xa8lxGyPJmpE9UPmHeFYw+1i3jn5GVKQ1LVU7JLeBRsq1zdtavs4f98sr+yGJHPx
 FDRCGpeMUcWQfmo36M+SFr/5vLozhAWx4J082d1mbhG3pR7RiWmb/Fn3fa+ccTB1LKbehQd3
 2R8AEQEAAcLA/AQYAQoAJhYhBPf+AHwxcwx1MdtVSry/K/y4McxcBQJbZtgPAhsMBQkDwmcA
 AAoJELy/K/y4McxcRkwL/2uY3YBNWgtUa2eanY0WHQd5FUq+vYOE5ENlFkS7z/GG7keIIvbq
 zLuVJkwoYtNBr2p3l8a8NEG7NCml00PIRdPG7BxLaejr2ZoV1PCSIgmtK4N9vyuYptIUP6Od
 idLCF7FTFb6Fi3O5itsLzGM9CVdtLuxU+TT9Az4DxeDNGgkHXdOlt2fngupItv2x6oq7839I
 rVj7AZdTPAIaCk4rxMbFrXKbVfdwT14C9IMMRV4Ya/tui2cqvfuOGWJLbFX36VU2/1itMGfj
 YXCnwaoyrw21B0FStUo/uvQ2pJjyo7uhOYowULP1ooXyzm6t2z8jH8PxTF5lHp7Gk2BJJFGM
 TqNfuOMhYeq7ONQtj3T/yEzR64tv6pjhZXl2GCzXQbPMyBFIYycNndKtU/j4M4OVsEo7NMob
 mkE+MqJDJMcLLGY79DunLDXt4udIhjfx6cQDMi+ZwEFThh0f49bMbIYjD7vUpLyLyja2Ouil
 05DUKaxd0+Uool2AxTGyICqDtr5Mpw==
Message-ID: <03251c9f-a643-ed3b-83bd-e52590291c22@HIDDEN>
Date: Fri, 11 Oct 2019 09:55:13 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
X-PMX-Version: 6.4.8.2820816, Antispam-Engine: 2.7.2.2107409,
 Antispam-Data: 2019.10.11.74817, AntiVirus-Engine: 5.65.0,
 AntiVirus-Data: 2019.10.11.5650001 internal
X-OriginatorOrg: anu.edu.au
X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report='
 HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0,
 BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0,
 BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, FROM_EDU_TLD 0,
 SINGLE_URI_IN_BODY 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __BODY_NO_MAILTO 0,
 __COURIER_PHRASE 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0,
 __HAS_FROM 0, __HAS_MSGID 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0,
 __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __MOZILLA_USER_AGENT 0,
 __NO_HTML_TAG_RAW 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0,
 __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0,
 __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS ,
 __URI_WITH_PATH 0, __USER_AGENT 0'
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone)
 [generic] [fuzzy]
X-Received-From: 130.56.64.27
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 11 Oct 2019 10:31:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hi there

I got this email address from the 'df' man page. Hope it's still active
and the right place for feedback.

With recent changes to Ubuntu and the increasing use of 'snap' packaging
for all sorts of things, the 'df' utility output is now quite jumbled
and messy. My fairly normal system now has 17 /dev/loopNN mounts for
various different software packages. I would rather not see these things
by default. Or at least, I would like to have a convenient
single-character flag that allows me to suppress those mounts from my
'df' output.

One useful approach would be a flag that suppresses read-only
filesystems. Another approach would be to suppress read-only filesystems
that have no free space. Perhaps there are other good approaches too.

I don't know if this issue is also relevant for 'docker' or not.

Cheers
JP

https://askubuntu.com/questions/834093/small-snap-loop-devices-visible-in=
-gnome-disk-utility-or-what-is-the-function-of







Acknowledgement sent to John Pye <john.pye@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#37702; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 14 Oct 2019 08:00:03 UTC

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