From owner-freebsd-stable@FreeBSD.ORG Tue Apr 19 07:48:08 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56FD416A4CE for ; Tue, 19 Apr 2005 07:48:08 +0000 (GMT) Received: from mail22.syd.optusnet.com.au (mail22.syd.optusnet.com.au [211.29.133.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B17843D31 for ; Tue, 19 Apr 2005 07:48:07 +0000 (GMT) (envelope-from fbsd-stable@mawer.org) Received: from c211-30-90-140.belrs3.nsw.optusnet.com.au (c211-30-246-162.belrs3.nsw.optusnet.com.au [211.30.246.162]) j3J7m3DI013046 for ; Tue, 19 Apr 2005 17:48:06 +1000 Received: (qmail 89541 invoked from network); 19 Apr 2005 07:48:03 -0000 Received: from unknown (HELO ?10.1.1.1?) (unknown) by unknown with SMTP; 19 Apr 2005 07:48:03 -0000 Message-ID: <4264B7B5.7090205@mawer.org> Date: Tue, 19 Apr 2005 17:48:05 +1000 From: Antony Mawer User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 4.x smbfs getdirentries() failure - need help debugging X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 07:48:08 -0000 Hi all, Have been doing my best to plod through debugging an issue with SMBFS on FreeBSD 4.11, where with a certain size directory, getdirentries() returns errno=9 (Bad file descriptor) when it reaches the end of the directory listing. I've traced it that far and found PR 78953 that appears to be the same issue, but am a bit out of my depth as to where to go from here. http://www.freebsd.org/cgi/query-pr.cgi?pr=78953 Would anyone be able to provide any pointers on where to go from here in trying to track down the cause? I've provided instructions that reliably allow me to reproduce the problem with a Windows XP machine as the source for the smbfs share, if anyone wants to have a look... At this point I'm guessing I need DDB to figure out what the kernel's doing and determine exactly where & why this error is arrising. Any help would be much appreciated, as at this point I'm into the unchartered (for me) world of the kernel! :-) Regards Antony