Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72446 - /etc/exports with negative anonuid and anongid : id's are not displayed correctly by ls
Summary: /etc/exports with negative anonuid and anongid : id's are not displayed corre...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 04:59 UTC by Toralf Förster
Modified: 2004-12-12 02:42 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 Toralf Förster gentoo-dev 2004-11-25 04:59:17 UTC
Here's my file /etc/exports:
nhh221 /var/tmp # cat /etc/exports
# /etc/exports: NFS file systems being exported.  See exports(5).
/var/log nhh221_uml(ro,sync)
/var/tmp nhh221_uml(rw,sync,all_squash)

If I mount /var/tmp under my UML - Client with the following /etc/fstab:
nhh221 /var/tmp # mount -o loop /share/root_fs /mnt/loop0/
nhh221 /var/tmp # grep var /mnt/loop0/etc/fstab
nhh221:/var/log         /mnt/nfs/log    nfs             noauto,defaults,soft            0 0
nhh221:/var/tmp         /mnt/nfs/tmp    nfs             noauto,defaults,soft    0 0

and made a 
nhh221_uml root # touch /mnt/nfs/tmp/l
inside of my UML, I got on the host:
nhh221 /var/tmp # ls -l /var/tmp/l
-rw-r--r--  1 4294967294 4294967294 0 Nov 25 13:52 /var/tmp/l

that means instead of -2 the 2-complement 2^32 - 1 is displayed.

With positive numbers for anonuid and anongid there is no problem.
Here are some more info:
nhh221 /var/tmp # uname -a
Linux nhh221 2.6.9-gentoo-r6 #2 Thu Nov 25 12:21:46 CET 2004 i686 Intel(R) Pentium(R) M processor 1.70GHz GenuineIntel GNU/Linux
nhh221 /var/tmp # qpkg -I -v -nc nfs
net-fs/nfs-utils-1.0.6-r4
As usermode linux I use sys-kernel/usermode-sources-2.6.8.1-r4

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -mfpmath=sse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/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=pentium3 -pipe -mfpmath=sse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.gigaload.org/gentoo.org/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb bitmap-fonts cddb cdparanoia cdr crypt cups
doc dvd dvdr dvdread encode esd ethereal f77 fam foomaticdb fortran gdbm gif
gnome gpm gstreamer gtk gtk2 imagemagick imlib innodb java joystick jpeg junit
kde libg++ libwww live mad mbox mikmod mmx mmx2 motif mozilla mpeg mysql
nagios-dns nagios-ntp nagios-ping nagios-s ncurses network nls oggvorbis opengl
oss pam pcmcia pdflib perl png python qt quicktime readline samba sdl slang snmp
spell sse sse2 ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib
linguas_de"
Comment 1 Toralf Förster gentoo-dev 2004-12-12 02:42:52 UTC
oops, inode numbers are unsigned, I misinterpreted the manual page of exports