Ubuntu

df produces broken output on machines with long device names and lots of disk

Reported by James Troup on 2004-12-21
6
Affects Status Importance Assigned to Milestone
busybox-cvs (Ubuntu)
High
Colin Watson

Bug Description

lilo-installer's postinst dies on a DL380 I just tried to install it on. The
root cause is this:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/cciss/host0/target0/part1563990864 334724 535007028 0% /target

The lack of space between the filesystem name and number of blocks causes lilo
to try and install ont to part1563990864 :-)
Maybe this is a bug in busybox's df? In any event it'll also be much less of an
issue in hoary since we no longer user devfs.

Colin Watson (cjwatson) wrote :

We still use devfs paths in Hoary, just not devfs itself.

Colin Watson (cjwatson) wrote :

Definitely a busybox-cvs df bug:

            bb_printf("%-21s%9s ", device,
                      make_human_readable_str(s.f_blocks, s.f_bsize, df_disp_hr));

That should clearly be "%-20s %9s ". I've sent a patch upstream, and am fixing
it for Hoary now.

Colin Watson (cjwatson) wrote :

busybox-cvs (20040623-1ubuntu3) hoary; urgency=low

  * Fix df output on large filesystems with long device names (closes:
    Ubuntu #4875).

 -- Colin Watson <email address hidden> Wed, 22 Dec 2004 05:22:20 +0000

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.