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