Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96942 - davfs2/coda/kernel 2.6.10/glibc problem with getdents64 misidentifying directories
Summary: davfs2/coda/kernel 2.6.10/glibc problem with getdents64 misidentifying direct...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 06:47 UTC by Chris Carlin
Modified: 2005-07-27 12:15 UTC (History)
1 user (show)

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 Chris Carlin 2005-06-24 06:47:53 UTC
Feel free to add a better summary; I simply don't know which package is the root
of this problem.

I've been having trouble with davfs2 not being able to show directories. ls
returns "not a directory". I can save and retrieve files so long as I know
they're already there, but just not list them. I'm positive that the server is
set up correctly, though, as davfs2 clients on other computers have no trouble,
and I've tried multiple servers, all of which should work. 

Consider the following session:
# ls /mnt/mp3
# mount.davfs http://xxx/projects /mnt/mp3
# ls /mnt/mp3
ls: reading directory /mnt/mp3: Not a directory
# echo hello > /mnt/mp3/echotest
# cat /mnt/mp3/echotest
hello
(use web browser to verify that file is actually on server... it is)
# rm /mnt/mp3/echotest
# cat /mnt/mp3/echotest
cat: /mnt/mp3/echotest: No such file or directory

The problem seems to be revealed by strace:
# strace ls /mnt/mp3/
[...]
getdents64(3, 0x805bb74, 1024)          = -1 ENOTDIR (Not a directory)

So getdents64 doesn't see the mountpoint as a directory. This seems to see the
root of the problem.

Reproducible: Always
Steps to Reproduce:




# qpkg -I -v davfs2
net-fs/davfs2-0.2.3-r1 *

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.10-lxnay3 i686)
=================================================================
System uname: 2.6.10-lxnay3 i686 Mobile Pentium II
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun  8 2005, 13:48:47)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.14.90.0.8-r1, 2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://127.0.0.1:9115/http://distfiles.gentoo.org
http://gentoo.osuosl.org"
MAKEOPTS="-j 5 -l 3.5"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bidi bitmap-fonts bl bzip2 calendar cardbus
cdparanoia cjk cpudetection crypt cups curl curlwrappers custom-cflags dbus dga
divx4linux encode exif extras fam ffmpeg foomaticdb ftp gcj gif gnuplot
gstreamer gtk gtk2 h323 hal iconv imagemagick imap imlib ipv6 jabber java
javascript jikes jpeg justify lcd ldap libg++ libwww linuxkeys live lm_sensors
lufsusermount lzo lzw-tiff matroska mime mmap mmx motif mozsvg mp3 mpeg mpi
multislot mythtv ncurses nls nojoystick nptl nptlonly offensive ogg oggvorbis
opengl pam parse-clocks pcmcia pcntl pdflib perl pic png pnp posix ppds python
qt quicktime readline real samba sdl sharedmem simplexml sockets spell ssl
stream svg sysfs sysvipc tcltk tcpd threads tiff truetype truetype-fonts trusted
type1-fonts unicode usb userlocales vidix vorbis webdav wifi win32codecs xanim
xml xml2 xmms xosd xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-26 07:09:16 UTC
cc'ing davfs2 maintainer, because he's not in net-fs.
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-07-10 12:04:32 UTC
I have really no idea here, can you please report this problem upstream, maybe
to the davfs mailing list?
Please try out the latest cvs, if it fixes the issue ..
Comment 3 Chris Carlin 2005-07-27 12:15:53 UTC
It now works for me, no idea why. Same versions of glibc and davfs2