This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin NFS server yields empty directory listing


For some years I have run an old Unix system (OpenStep) as an NFS client.
The NFS server has been SFU running on Windows XP. This combination works
fine.

For Windows 7 I have looked at HameWin, FreeNFS, ... but they have
limitations like very restricted user mapping.

I've therefore tried Cygwin NFS server, which is more promising. I appear to
have it set up correctly (permissions, firewall, user mapping, exports,
etc.). It sort-of works but there's a bizarre problem.

When I list a directory exported from the Windows server to the Unix client
it works fine the first time. But when I list the directory a second (or
later) time I get no entries listed.

I turned on all logging for nfsd. It seems that it serves up directory
entries only on the first access. On subsequent accesses, there is only
minimal processing in NFS server and no attempt to read the directory:

nfsd[8796] 04/28/112 18:25 fhandle.c 938 : fh_find: psi=14cfa... found
'/tmp', fd=-1
nfsd[8796] 04/28/112 18:25 dispatch.c 174 : getattr [1 112/4/28 19:25:32
clam 0.100+100,0]
nfsd[8796] 04/28/112 18:25 dispatch.c 174 :     /tmp
nfsd[8796] 04/28/112 18:25 fhandle.c 938 : fh_find: psi=14cfa... found
'/tmp', fd=-1
nfsd[8796] 04/28/112 18:25 ugid_map.c 455 : ugid_get_entry(0x20075278, 0)
result 0x20075680
nfsd[8796] 04/28/112 18:25 ugid_map.c 287 : luid(192.168.1.20, 0) = 500
nfsd[8796] 04/28/112 18:25 ugid_map.c 455 : ugid_get_entry(0x200782b8, 100)
result 0x200789e0
nfsd[8796] 04/28/112 18:25 ugid_map.c 310 : lgid(192.168.1.20, 100) = 1008
nfsd[8796] 04/28/112 18:25 ugid_map.c 455 : ugid_get_entry(0x200782b8, 100)
result 0x200789e0
nfsd[8796] 04/28/112 18:25 ugid_map.c 310 : lgid(192.168.1.20, 100) = 1008
nfsd[8796] 04/28/112 18:25 ugid_map.c 455 : ugid_get_entry(0x200782b8, 0)
result 0x200786c0
nfsd[8796] 04/28/112 18:25 ugid_map.c 310 : lgid(192.168.1.20, 0) = 513
nfsd[8796] 04/28/112 18:25 ugid_map.c 237 : ruid(192.168.1.20, 544) = -2
nfsd[8796] 04/28/112 18:25 ugid_map.c 264 : rgid(192.168.1.20, 513) = -2
nfsd[8796] 04/28/112 18:25 dispatch.c 182 : result: 0

(no readdir at this point)

Despite the empty directory listing, I can create and delete files or
directories in the exported directory. I therefore think that the NFS setup
is correct, but for some reason reading a directory gives no results after
one access.

Any inspirations? I am using Windows 7 Enterprise SP1, cygwin 1.7.14-2,
nfs-server 2.3-5.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]