[Pkg-sysvinit-devel] Bug#653073: why root filesystem reported as /dev/disk/by-uuid/ long name starting today?

Joey Hess joeyh at debian.org
Wed Jan 4 18:51:38 UTC 2012


Since this bug was making my life miserable, I patched df to fix its
output. The attached patch hides "rootfs" type mount points, and
canonicalizes device paths when displaying them.

Result:

Filesystem      Size  Used Avail Use% Mounted on
udev            495M     0  495M   0% /dev
tmpfs           100M  696K  100M   1% /run
/dev/sda1        29G   27G  1.4G  96% /
tmpfs           200M  340K  200M   1% /run/shm

The rootfs part of the patch is about as good a fix as I think we're going
to get. There's nothing wrong with the device path canonicalization
(it will handle correctly all cases including remote devices, special devices, 
deleted or inaccessible device files, even relative devices), but
df is not the best place to put it; fixing klibc would be better.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: df.patch
Type: text/x-diff
Size: 1592 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20120104/318d88e4/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20120104/318d88e4/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list