[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
df reports size incorrectly when used with "-B"
From: |
Nilmoni Deb |
Subject: |
df reports size incorrectly when used with "-B" |
Date: |
Sat, 8 Mar 2003 13:38:37 -0500 (EST) |
Using df (coreutils) 4.5.7.
/> /bin/df -T -m
Filesystem Type 1M-blocks Used Available Use% Mounted on
/dev/hda5 ext2 3444 696 2573 22% /
/> /bin/df -T -B M
Filesystem Type 1M-blocks Used Available Use% Mounted on
/dev/hda5 ext2 3444M 696M 2573M 22% /
The 1st command says there are 3444 1M-blocks blocks, which makes sense.
The 2nd one says there are 3444M 1M-blocks, which is superfluous at best
and erroneous at worst, since this partition does not have 3444 million
million bytes !!
In fact, this problem is there for all options when used with the "-B"
option.
As a suggestion, u could show it this way for "/bin/df -T -B M":
Filesystem Type Total Used Available Use% Mounted on
/dev/hda5 ext2 3444M 696M 2573M 22% /
This would make it more consistent.
thanks
- Nil
- df reports size incorrectly when used with "-B",
Nilmoni Deb <=