From owner-freebsd-hackers Fri Jul 5 13:42:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FBAC37B400 for ; Fri, 5 Jul 2002 13:42:35 -0700 (PDT) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AE8943E31 for ; Fri, 5 Jul 2002 13:42:34 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g65KgUdg075756; Fri, 5 Jul 2002 16:42:30 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: Date: Fri, 5 Jul 2002 16:42:29 -0400 To: Richard Sharpe From: Garance A Drosihn Subject: Re: Adding readdir entries to the name cache ... Cc: Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 6:29 AM +0930 7/6/02, Richard Sharpe wrote: >Hmmm, I think that the major part of the problem there was that, >for what ever reason, Barry Feigenbaum of IBM, declined to add >a Change Working Directory or Set Working Diretory command to >the SMB protocol. > >Thus, at least for the SMB protocol, and maybe generally, Windows >clients must always send the full pathname for every file they >want, unless it happens to be at the root of the share. Could the unix process for samba fake that? Keep track of the most recently used directory, and when a new request comes in split it into "directory" plus "filename", and if the directory is the same as the previous one, then just access the filename. If the directory is different, try to do a chdir() to the new directory, and if that succeeds then save that as the "previous" directory. Or is that more trouble than it's worth? -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message