From owner-freebsd-bugs Wed Aug 22 23:50: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9129337B415 for ; Wed, 22 Aug 2001 23:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7N6o0J88048; Wed, 22 Aug 2001 23:50:00 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3540A37B40A for ; Wed, 22 Aug 2001 23:47:06 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7N6kcp85890; Wed, 22 Aug 2001 23:46:38 -0700 (PDT) (envelope-from nobody) Message-Id: <200108230646.f7N6kcp85890@freefall.freebsd.org> Date: Wed, 22 Aug 2001 23:46:38 -0700 (PDT) From: Andre Guibert de Bruet To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/29974: smbfs generates a ''Negative opencount'' error message on unmount Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29974 >Category: kern >Synopsis: smbfs generates a ''Negative opencount'' error message on unmount >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 22 23:50:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Andre Guibert de Bruet >Release: FreeBSD 4.4-RC i386 >Organization: >Environment: FreeBSD theta.properkernel.com 4.4-RC FreeBSD 4.4-RC #0: Thu Aug 23 00:26:18 EDT 2001 root@theta.properkernel.com:/usr/src/sys/compile/THETA i386 >Description: Unmounting an smbfs filesystem generates a "Negative opencount" message on two (so far) different 4.4-RC i386 machines. I have been able to reproduce this with both the kld and the in-kernel versions of smbfs. I traced down the error message and it comes from a call to smb_closel() in /usr/src/sys/fs/smbfs/smbfs_vnops.c. >How-To-Repeat: Either compile a kernel with smbfs or load the kld. Mount an smb filesystem and unmount it. >Fix: I created a patch which addresses the issue. It is available at http://siliconlandmark.com/staff/andre/smbfs.diff . >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message