Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 142863 - du output split with long filesystem name
du output split with long filesystem name
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-12-14 14:09 EST by Joshua Daniel Franklin
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-12-15 05:23:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joshua Daniel Franklin 2004-12-14 14:09:01 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0

Description of problem:
With the default naming scheme of /dev/mapper/VolGroup00-XXX,
filesystem names are too long for normal df output. For example, on my
beta machine I currently have: 

Filesystem           1K-blocks      Used Available Use% Mounted on
                      12901520   5648944   6597216  47% /
/dev/sda1               101086     31750     64117  34% /boot
none                    517016         0    517016   0% /dev/shm
                       2031952     70888   1857848   4% /home
                       7063480   4203728   2500944  63% /usr/local
                       2031952    758128   1170608  40% /var

This messes up automated tools that expect df output to be
one-line-per-filesystem, such as the BigBrother monitor or LogWatch
(on by default in RHEL4b2) which shows the nearly useless output:

------------------ Disk Space --------------------

/dev/sda1              99M   32M   63M  34% /boot

df should use more intelligent columns to fit it on 80 char if
possible, or perhaps truncate filesystem names unless a --verbose flag
is set. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install RHEL3b2 with default filesystem names
2. Run df
3. See output

Actual Results:  df output split 

Expected Results:  df output one-filesystem-per-line

Additional info:
Comment 1 Tim Waugh 2004-12-15 05:23:59 EST
Use df -P for POSIX format.
Comment 2 Jay Turner 2004-12-15 05:39:16 EST
'df -P' will resolve this issue for you.

Note You need to log in before you can comment on or make changes to this bug.