Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121283 - Samba-3.0.14a-r3 still has empty directories (follow-up to bug #101770)
Summary: Samba-3.0.14a-r3 still has empty directories (follow-up to bug #101770)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 03:22 UTC by Christian Faulhammer (RETIRED)
Modified: 2006-02-04 03:34 UTC (History)
1 user (show)

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


Attachments
Output of `testparm -v -s` from Christian Faulhammer (testparm.out,7.22 KB, text/plain)
2006-02-02 03:27 UTC, Christian Faulhammer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Faulhammer (RETIRED) gentoo-dev 2006-02-02 03:22:56 UTC
As described in bug #101770 people have empty directories on their shares.  Even if I mount the share locally (on the same machine), I have some (not all) empty subdirectories.  Logs follow.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2006-02-02 03:27:20 UTC
Created attachment 78708 [details]
Output of `testparm -v -s` from Christian Faulhammer

I will test with Samba 3.0.20
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2006-02-02 04:10:23 UTC
Same problems with Samba 3.0.20
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2006-02-02 05:30:07 UTC
3.0.21b is out. Please try it, and if the problem persists:

1) 'emerge info' on the server
2) what is the os on the client?
3) server directory layout
4) mount options (if client is *nix)
5) mounted dirs layout
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2006-02-02 10:44:23 UTC
(In reply to comment #3)
> 3.0.21b is out. Please try it, and if the problem persists:

 Yes, it does.
 
> 1) 'emerge info' on the server
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 acpi alsa apm artworkextra asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash bzip2 cairo cdda cddb cdparanoia cdr cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux doc dri dts dvd dvdr dvdread dvi eds emacs emboss encode esd exif expat fam fbcon fdftk ffmpeg firefox flac foomaticdb fortran ftp gb gcj gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl icq idn imagemagick imap imlib ipv6 java javascript jikes jpeg junit lcms ldap leim libg++ libwww mad maildir matroska mbox mikmod mime mmx mmxext mng mono motif mp3 mpeg mpeg2 mule nautilus ncurses nls nocardbus nptl nptlonly ogg oggvorbis opengl pam pcre pdflib perl plotutils png ppds preview-latex print python qt quicktime readline recode samba sdk slang spell sse ssl svg svga t1lib tcltk tcpd theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xine xinerama xml xml2 xmms xosd xv xvid zlib video_cards_radeon input_devices_mouse input_devices_kbd linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

> 2) what is the os on the client?

 Windows XP, but Gentoo Linux (the server itself) shows the same behaviour.

> 3) server directory layout

 /usr/local/music all subdirectories are shown, but some are empty, some contain files (haven't found a scheme for that).

> 4) mount options (if client is *nix)

 standard `smbmount //192.168.1.123/Musik /mnt/samba`

> 5) mounted dirs layout

 /mnt/samba
Comment 5 Chris Smith 2006-02-02 19:03:39 UTC
smbmount uses smbfs. smbfs is not samba

Is it possible you have a >2GB issue?
smbfs has real problems with files and or shares >2GB, directories will appear empty, etc.
also, Win98 has similar issues

Try mounting with a current version of cifs (instead of smbfs) and test with a modern Windows version as well.

Your issues may not be Samba related at all.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2006-02-03 01:48:32 UTC
Thanks for the clarification. Ok, I added CIFS to my kernel, removed SMB, compiled and rebooted.

$ mount.cifs //192.168.1.123/Musik /mnt/samba --verbose

mount.cifs kernel mount options unc=//192.168.1.123\Musik,ip=192.168.1.123,user=fauli,pass=,ver=1 

$ mount

//192.168.1.123/Musik on /mnt/samba type cifs (rw,mand,nosuid,nodev,user=fauli)

Still, the same problems.  Also the share on the Windows box (WinXP, all patches and SPs) shows no change.  Still Samba 3.0.21b.

Comment 7 Chris Smith 2006-02-03 11:57:48 UTC
What kernel/version of cifs? Normal syntax is to use "mount -t cifs ...." instead of calling mount.cifs directly.

On the problem directories, check for name problems, might be some character issues. Check for permissions issues at the file level as well. Also note that "." dot files are hidden by default.

Try the default "security = user" mode instead of "security = share". The smb.conf man page says: "Note that it can be very confusing in share-level security as to which UNIX username will eventually be used in granting access."

Send me all of your files on DVD(s) and I will try to recreate :)
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2006-02-04 03:34:12 UTC
No name problems, kernel 2.6.15.1 (latest stable gentoo-sources), but I solved the problem by switching to security = user (all files and directories have the same permissions, same uids and gids), so I don't know why it failed in share mode.  Ok, thanks for the kind help.  If you still need the files for debugging needs, drop me a mail, maybe the list of the files can help you...:)