[Bug 1219529] Re: df -x tmpfs fails to exclude udev (/dev)
Bryce Harrington
1219529 at bugs.launchpad.net
Wed Apr 22 16:49:41 UTC 2020
20.04's coreutils still has the behavior described in this bug. /dev is
listed as type 'udev' by df but df -x udev does not exclude it; df -x
devtmpfs does.
I wonder if one way to at least resolve the confusion might be to make
the code that prints the table display devtmpfs devices as 'devtmpfs'.
An obvious alternative would be to make '-x udev' be handled like '-x
udev -x devtmpfs'. Another alternative would be to overload '-x tmpfs'
to exclude also udev and devtmpfs. It's not clear what the best
solution would be.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1219529
Title:
df -x tmpfs fails to exclude udev (/dev)
Status in coreutils:
New
Status in coreutils package in Ubuntu:
Triaged
Bug description:
The command:
$ /bin/df -x tmpfs
should exclude all filesystems of type tmpfs. The udev filesystem
mounted at /dev is of this type:
$ stat -f /dev
File: "/dev"
ID: 0 Namelen: 255 Type: tmpfs
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 4109101 Free: 4109098 Available: 4109098
Inodes: Total: 4109101 Free: 4108501
However, df still displays this filesystem:
$ df -l -x tmpfs
Filesystem 1K-blocks Used Available Use% Mounted on
...
udev 16436404 12 16436392 1% /dev
...
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: coreutils 8.20-3ubuntu5
ProcVersionSignature: Ubuntu 3.8.0-29.42-generic 3.8.13.5
Uname: Linux 3.8.0-29-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Sun Sep 1 15:05:40 2013
InstallationDate: Installed on 2013-08-31 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: coreutils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/coreutils/+bug/1219529/+subscriptions
More information about the foundations-bugs
mailing list