From nobody@FreeBSD.org  Wed Feb  4 04:38:21 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9F61616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Feb 2004 04:38:21 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C3D2443D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Feb 2004 04:38:20 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i14CcKdL061761
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 Feb 2004 04:38:20 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i14CcKIm061760;
	Wed, 4 Feb 2004 04:38:20 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402041238.i14CcKIm061760@www.freebsd.org>
Date: Wed, 4 Feb 2004 04:38:20 -0800 (PST)
From: Victor Prylipko <vic@liniya.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: error in creation and removing files and directories on file system mounted via mount_smbfs
X-Send-Pr-Version: www-2.0

>Number:         62342
>Category:       kern
>Synopsis:       error in creation and removing files and directories on file system mounted via mount_smbfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tjr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 04 04:40:16 PST 2004
>Closed-Date:    Thu Feb 26 03:13:29 PST 2004
>Last-Modified:  Thu Feb 26 03:13:29 PST 2004
>Originator:     Victor Prylipko
>Release:        4.9-STABLE
>Organization:
Liniya
>Environment:
FreeBSD vic-free.lini-a.ru 4.9-STABLE FreeBSD 4.9-STABLE #11: Tue Feb 3 16:02:30 MSK 2004     admin@vic-free.lini-a.ru:/usr/obj/usr/src/sys/VIC-FREE  i386
>Description:
After creation and deteting file, on file system mounted via mount_smbfs, can't create and delete directory with the same name.

After unmounting and mounting smbfs again you can delete directory.
>How-To-Repeat:
mount_smbfs -N //vic/test /mnt/test
ls -l /mnt/test
touch /mnt/test/file1
rm /mnt/test/file1
mkdir /mnt/test/file1
ls -l /mnt/test

ls shows just created directory "file1" as file, not a directory and it's imposible to delete this directory or even touch one level up directory

total 0                                        
-rwxr-xr-x  1 root  wheel  0 Feb  4 15:31 file1

root@vic-free#touch /mnt/test        
touch: /mnt/test: Bad file descriptor
      
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->tjr 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sun Feb 8 20:49:01 PST 2004 
Responsible-Changed-Why:  
tjr has done work on smbfs recently 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62342 
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Mon Feb 9 21:55:15 PST 2004 
State-Changed-Why:  
Fixed in -current, will be MFC'd after 2 weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62342 
State-Changed-From-To: patched->closed 
State-Changed-By: tjr 
State-Changed-When: Thu Feb 26 03:13:10 PST 2004 
State-Changed-Why:  
Fixed in -stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62342 
>Unformatted:
