[Bug 1535349] Re: `df /dev/sda1` no longer reports information for /dev/sda1
Dave Chiluk
1535349 at bugs.launchpad.net
Tue Feb 23 16:40:52 UTC 2016
Alright I've finally finished a patch for initramfs-tools to resolve the
UUID information.
I've uploaded a test version of initramfs-tools to my test ppa for this issue.
dput ppa:chiluk/df
I would really appreciate if, I could get help testing for both
initramfs-tools and the coreutils packages that are available in that
ppa.
Additionally here's the debdiff for initrmafs-tools.
Thank you.
** Patch added: "lp1535349initramfs.trusty.debdiff"
https://bugs.launchpad.net/ubuntu/trusty/+source/initramfs-tools/+bug/1535349/+attachment/4579177/+files/lp1535349initramfs.trusty.debdiff
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1535349
Title:
`df /dev/sda1` no longer reports information for /dev/sda1
Status in coreutils source package in Trusty:
In Progress
Status in initramfs-tools source package in Trusty:
In Progress
Bug description:
[Impact]
* df fails to process devices that are specified on the command line.
[Test Case]
* Actual
$ df -h /dev/sda1
Filesystem Size Used Avail Use% Mounted on
udev 1.8G 8.0K 1.8G 1% /dev
* Expected
$ df -h /dev/sda1
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 978M 8.5G 11% /
[Regression Potential]
* This patch is a partial backport of functions as they exist in
vivid to help minimize the regression potential.
* That being said I had to do some backporting so as to avoid ui changes.
* This once again significantly changes the mount search and matching
logic within df, but it is localized to df.
[Other Info]
* Anything else you think is useful to include
* Anticipate questions from users, SRU, +1 maintenance, security teams and the Technical Board
* and address these questions in advance
-------------------- Original Description-----------------------
It appears that the latest version of coreutils uploaded to trusty-updates has a regression in it. We have scripting that checks how much space we have left on a partition using `df /dev/sda1`. Using coreutils 8.21-1ubuntu5.1, we can do the following:
$ df -h /dev/sda1
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 978M 8.5G 11% /
This is a valid way of using the tool per the manpage: "If an
argument is the absolute file name of a disk device node containing a
mounted file system, df shows the space available on that file system
rather than on the file system containing the device node"
It appears that either 8.21-1ubuntu5.2 or 8.21-1ubuntu5.3 broke this,
however. We now get output for the udev filesystem that is mounted at
/dev, instead of the device we pass in.
$ df -h /dev/sda1
Filesystem Size Used Avail Use% Mounted on
udev 1.8G 8.0K 1.8G 1% /dev
This is both a behaviour change, and contravenes the manpage, so it
would be good to get this fixed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/trusty/+source/coreutils/+bug/1535349/+subscriptions
More information about the Ubuntu-sponsors
mailing list