From owner-cvs-src@FreeBSD.ORG Mon Feb 9 21:53:03 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D50B16A4CE; Mon, 9 Feb 2004 21:53:03 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AECF43D1D; Mon, 9 Feb 2004 21:53:03 -0800 (PST) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1A5r2Ge033792; Mon, 9 Feb 2004 21:53:02 -0800 (PST) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1A5r2hi033791; Mon, 9 Feb 2004 21:53:02 -0800 (PST) (envelope-from tjr) Message-Id: <200402100553.i1A5r2hi033791@repoman.freebsd.org> From: "Tim J. Robbins" Date: Mon, 9 Feb 2004 21:53:02 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/smbfs smbfs_node.c smbfs_node.h smbfs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2004 05:53:03 -0000 tjr 2004/02/09 21:53:02 PST FreeBSD src repository Modified files: sys/fs/smbfs smbfs_node.c smbfs_node.h smbfs_vnops.c Log: Fixes problems that occurred when a file was removed and a directory created with the same name, and vice versa: - Immediately recycle vnodes of files & directories that have been deleted or renamed. - When looking an entry in the VFS name cache or smbfs's private cache, make sure the vnode type is consistent with the type of file the server thinks it is, and re-create the vnode if it isn't. The alternative to this is to recycle vnodes unconditionally when their use count drops to 0, but this would make all the caching we do mostly useless. PR: 62342 MFC after: 2 weeks Revision Changes Path 1.19 +17 -0 src/sys/fs/smbfs/smbfs_node.c 1.6 +1 -0 src/sys/fs/smbfs/smbfs_node.h 1.45 +24 -1 src/sys/fs/smbfs/smbfs_vnops.c