From owner-freebsd-current@FreeBSD.ORG Tue Aug 12 04:37:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E7C837B401 for ; Tue, 12 Aug 2003 04:37:09 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A76B43F93 for ; Tue, 12 Aug 2003 04:37:08 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfigt.dialup.mindspring.com ([165.247.202.29] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19mXSa-0006KF-00; Tue, 12 Aug 2003 04:37:05 -0700 Message-ID: <3F38D104.426ECD7D@mindspring.com> Date: Tue, 12 Aug 2003 04:35:32 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Lars Eggert References: <200308100406.47211.coolvibe@hackerheaven.org> <20030810181824.GA14355@walton.maths.tcd.ie> <3F3693ED.40905@isi.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4a969dc8766bc1de7374540d2a7f4f464548b785378294e88350badd9bab72f9c350badd9bab72f9c cc: David Malone cc: current@freebsd.org Subject: Re: "got bad cookie" warnings/errors? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 11:37:09 -0000 Lars Eggert wrote: > David Malone wrote: > > I have a vague feeling they are related to a directory changing while it > > is being read, and might mean that the NFS client sees an inconsistent > > version of the directory. It's been a long time since I looked at it > > though. > > Sounds reasonable, but I'm not sure if is the case for me: > > My home directory is NFS mounted from a Solaris box, and gets modified > only from a single client (my desktop) at a time. I get these "cookie" > messages whenever I log out of X, when a lot of things get read and > written to that mount. Since all those reads and writes originate on my > FreeBSD desktop, I would expect its NFS client to keep its cache > consitent in that case. > > But maybe not. The problem is that the next iteration in the directory hits a bad cookie error because a delete ocurred during an iteration. If the program that's doing the iteration to do the deletes (which is what is likely happening) snapshotted the directory *then* did them, it would all work fine. Note that deleting from a shell doesn't have this problem, since the globbing occurs in the shell, and the arguments are all expanded before being passed to the "rm", so it doesn't have this issue. Basically, you have some badly behaved (for NFS) software. You can't really safely assume the server disk block size for the back-off (not to mention duplicate suppression for a double rename operation). -- Terry