X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=Pct9d1dd c=1 sm=1 a=meHXqv2/bBZ8gJQfqcz2JQ==:17 a=svkBOVZAq2oA:10 a=ihvODaAuJD4A:10 a=kj9zAlcOel0A:10 a=lwasF2FwX74C-llS3CoA:9 a=CjuIK1q_8ugA:10 a=meHXqv2/bBZ8gJQfqcz2JQ==:117 From: "Ken" To: Subject: Cygwin NFS server yields empty directory listing Date: Sat, 28 Apr 2012 23:49:21 +0100 Message-ID: <000001cd2591$27f27860$77d76920$@sixtus.plus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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