[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
df incorrectly handles volumes > 4TB
From: |
Joshua Hoblitt |
Subject: |
df incorrectly handles volumes > 4TB |
Date: |
Tue, 26 Oct 2004 09:39:25 -1000 (HST) |
This is how a 4.5TB filesystem with ~400GB of data on it is displayed with df
from coreutils-5.2.1.
nkfb0 root # df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 15757280 6248088 8708756 42% /
/dev/root_volume/home
210399784 13499740 194779340 7% /home/nkfb0
none 2008512 0 2008512 0% /dev/shm
/dev/sda1 101108 10824 85068 12% /boot
/dev/archive/scr0 585999328 401958244 178169060 70% /scr0
nkfb0 root # df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 17G 6.4G 9.0G 42% /
/dev/root_volume/home
216G 14G 200G 7% /home/nkfb0
none 2.1G 0 2.1G 0% /dev/shm
/dev/sda1 104M 12M 88M 12% /boot
/dev/archive/scr0 601G 412G 183G 70% /scr0
nkfb0 root # lvdisplay
--- Logical volume ---
LV Name /dev/archive/scr0
VG Name archive
LV UUID TyyfxB-dQZP-iFSR-iPjn-RRz3-Q4tu-mV2Vdp
LV Write Access read/write
LV Status available
# open 1
LV Size 4.55 TB
Current LE 4656
Segments 1
Allocation next free (default)
Read ahead sectors 0
Block device 253:1
--- Logical volume ---
LV Name /dev/root_volume/home
VG Name root_volume
LV UUID xInYjE-hEFg-xGHO-ldAT-CS41-j3r4-gKl1lh
LV Write Access read/write
LV Status available
# open 1
LV Size 202.25 GB
Current LE 51775
Segments 1
Allocation next free (default)
Read ahead sectors 0
Block device 253:0
I'd guess that a 32bit unsigned int is overflowing but I haven't looked at the
source.
This is a dup of Gentoo bug 65644.
http://bugs.gentoo.org/show_bug.cgi?id=65644
- df incorrectly handles volumes > 4TB,
Joshua Hoblitt <=