From owner-freebsd-bugs Sun Mar 1 10:29:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA12545 for freebsd-bugs-outgoing; Sun, 1 Mar 1998 10:29:44 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA12492; Sun, 1 Mar 1998 10:29:40 -0800 (PST) (envelope-from gnats) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10519; Sun, 1 Mar 1998 10:02:02 -0800 (PST) (envelope-from nobody) Message-Id: <199803011802.KAA10519@hub.freebsd.org> Date: Sun, 1 Mar 1998 10:02:02 -0800 (PST) From: remy@synx.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/5888: NFS server Side say NFSERR_BAD_COOKIE (rm -r fails) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5888 >Category: kern >Synopsis: NFS server Side say NFSERR_BAD_COOKIE (rm -r fails) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 1 10:29:39 PST 1998 >Last-Modified: >Originator: Remy NONNENMACHER >Organization: Synchronix >Release: 3.0-971225-SNAP >Environment: FreeBSD fs2.synx.com 3.0-971225-SNAP FreeBSD 3.0-971225-SNAP #4: Wed Feb 18 11:25:23 GMT 1998 root@fs2.synx.com:/usr/src/sys/compile/FS2 i386 >Description: Client is a Solaris 2.5.1 client machine running NFS V3. Server is the FreeBSD. The exported directory is a plain one (no cross-mount). When the client do a rm -r of the directory, it gets a 'directory not empty' error. I tcpdumped the flow and found the following operations : Client : Stat directory Server : stat is .... COOKIE=XXX Client : (stat files in directory and remove files) Server : (OK a each operation) Client : rmdir COOKIE=XXX Server : Error : Invalid COOKIE (NFSERR_BAD_COOKIE) Files in directory are not removed and client get the 'dir not empty' error. It seems that the problem doesn't appear on all directories but for ones with many files. PS: I'm not able to say if it's a Client or Server error. It may comes from the way the cookie is generated (directory has changed) or a Solaris misuses of a cookie value. >How-To-Repeat: I can reproduce the problem and trace it on a specific directory. Don't know the exact conditions. I can investigate if it may help. >Fix: By commented out the COOKIE test (sys/nfs/nfs_serv.c, v 1.52 1997/10/28 15:59:05 bde Exp) line 2578 and 2833 and all went OK. (I guessed the VOP_GETATTR was sufficient for consistency. (guessed only)). >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message