Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 1998 10:02:02 -0800 (PST)
From:      remy@synx.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   kern/5890: NFS server Side say NFSERR_BAD_COOKIE (rm -r fails)
Message-ID:  <199803011802.KAA10519@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5890
>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:42 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803011802.KAA10519>