Bug 3254 - windows client hang when browsing a freebsd samba share which is on a nfs fs
Summary: windows client hang when browsing a freebsd samba share which is on a nfs fs
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.20b
Hardware: x86 FreeBSD
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 20:46 UTC by Eric Lo
Modified: 2005-11-17 06:52 UTC (History)
0 users

See Also:


Attachments
partial error log (2.36 KB, text/plain)
2005-11-11 22:56 UTC, Eric Lo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Lo 2005-11-10 20:46:43 UTC
When I have upgraded my system to FreeBSD 6 Stable, I found windows client have
hanged when it browsed a share which is a nfs mount fs. However, FreeBSD 5.4
Stable does not have this kind of problem with the same environment. On the
other hand, there is no any problem when I access files on nfs fs in console. In
addition, I have reinstalled all samba related/depended freebsd ports by
"portupgrade -cCuvfrR samba". There is no any nfs related error in system log files.

PS: Samba server is in a freebsd jail but I found it did not affect the result.
(samba running outside also has this problem)
    When I browse other shares (not on nfs) on the samba server, there is no any
problems

NFS server: Debian unstable 
kernel: 2.6.14-1-686-smp 
NFS package: nfs-kernel-server-1.0.7-3
/etc/exports:
/home/d x.x.x.x (sync,rw,no_root_squash)


NFS client: FreeBSD 6 Stable (samba server)
/etc/fstab
ym78123.ym.edu.tw:/home/x         /home/js/x/x  nfs     rw,nfsv3,soft   0

ps output has showed that smbd processes are in 'lockd' state.

client: windows xp sp1/sp2

How-To-Repeat

                  when I browsing a share which is nfs mount fs
Comment 1 Jeremy Allison 2005-11-10 21:07:04 UTC
Samba uses fcntl locks calls on files being accessed. These are expected to work
correctly, even on a remote mounted filesystem. It seems as though there may be
a problem with fcntl locks on either the nfs client or server to cause an
accessing process to hang.

Jeremy.
Comment 2 Volker Lendecke 2005-11-10 21:23:11 UTC
To verify Jeremy's assumption you might try to set 'posix locking = no' in the
share definition. If this helps you still need to look into the locking problem.

Volker
Comment 3 Eric Lo 2005-11-10 23:56:00 UTC
When I set 'posix locking = no', the file share works fine.
I think Jeremy is right. Maybe there is a problem in file locking.
Comment 4 Eric Lo 2005-11-11 22:56:21 UTC
Created attachment 1567 [details]
partial error log
Comment 5 Eric Lo 2005-11-11 22:57:34 UTC
Comment on attachment 1567 [details]
partial error log

error log before I set 'posix locking = no'
Comment 6 Gerald (Jerry) Carter (dead mail address) 2005-11-17 06:52:02 UTC
Eric,  probably best to follow up with the FreeBSD NFS client 
maintainers.  Closing out this bug.