public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin NFS server yields empty directory listing
@ 2012-04-28 22:49 Ken
  2012-04-29 10:27 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Ken @ 2012-04-28 22:49 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cygwin NFS server yields empty directory listing
  2012-04-28 22:49 Cygwin NFS server yields empty directory listing Ken
@ 2012-04-29 10:27 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2012-04-29 10:27 UTC (permalink / raw)
  To: cygwin

On Apr 28 23:49, Ken wrote:
> 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.

http://cygwin.com/ml/cygwin/2012-04/msg00526.html


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-29 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-28 22:49 Cygwin NFS server yields empty directory listing Ken
2012-04-29 10:27 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).