Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45608 - df -h returns "Value too large for defined data type" on NFS mount
Summary: df -h returns "Value too large for defined data type" on NFS mount
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lfs-tracker
  Show dependency tree
 
Reported: 2004-03-24 08:44 UTC by Tom Dickson
Modified: 2024-02-06 03:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Dickson 2004-03-24 08:44:41 UTC
I have a server exporting a 160 GB harddrive as an NFS mount.

If I mount that share (linux:/opt/server) on either the liveCD or my Gentoo box (both with a 2.6.x kernel), I get the following output from "df -h":

livecd root # df -h
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                  93M  2.3M   90M   3% /
tmpfs                  93M  2.3M   90M   3% /
/newroot/dev/cdroms/cdrom0
                       79M   79M     0 100% /mnt/cdrom
/dev/hda1             7.9G  3.0G  5.0G  37% /mnt/gentoo
df: `/mnt/linux': Value too large for defined data type

If I mount it on one of the older RedHat systems, it works correctly. The problem seems to be somewhere around 128GB. Am I missing something like --large-file-support when compiling df?


Reproducible: Always
Steps to Reproduce:
1. Using a Gentoo system (either liveCD or installed)
2. Mount an NFS share that is more than 128 GB.
3. df -h returns the error above.

Note that the "-h" is not necessary to produce the error.

Actual Results:  
As above.

Expected Results:  
It should have produced the size correctly.

Note that this may have been fixed in some recent code, as it doesn't happen on
my work machine anymore, but still happens on my home machine?

What package provides df? fileutils or coreutils?

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc2)
=================================================================
System uname: 2.6.4-rc2 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -finline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.noved.org/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.ccccom.com"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb cdr crypt cups doc dvd encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib ipv6 java jpeg ldap libg++
libwww mad mikmod mmx mozilla mpeg ncurses nls ntpl oggvorbis opengl oss pam
pdflib perl png python quicktime readline samba sdl slang spell ssl svga tcpd
tetex truetype unicode x86 xml2 xmms xv zlib"

(that's the system that doesn't work, another one is the liveCD).

The working system is below:

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4)
=================================================================
System uname: 2.6.4 i686 Intel(R) Celeron(R) CPU 2.50GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://gentoo.ccccom.com
http://128.213.5.34/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif
mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres
python quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype
unicode x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-10-07 20:15:55 UTC
coreutils provides df, please try updating to the latest stable and see if that resolves this
Comment 2 Tom Dickson 2004-10-07 20:26:31 UTC
Fixed with system with current updates. Thanks!