From nobody@FreeBSD.org  Fri Jun 23 12:49:28 2006
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 9A90116A492
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jun 2006 12:49:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5C4C643D46
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jun 2006 12:49:28 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k5NCnS5t087320
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jun 2006 12:49:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k5NCnSgw087319;
	Fri, 23 Jun 2006 12:49:28 GMT
	(envelope-from nobody)
Message-Id: <200606231249.k5NCnSgw087319@www.freebsd.org>
Date: Fri, 23 Jun 2006 12:49:28 GMT
From: rootd <rootd@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject:  mount_smb
X-Send-Pr-Version: www-2.3

>Number:         99363
>Category:       kern
>Synopsis:       [smbfs]  mount_smb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 23 12:50:22 GMT 2006
>Closed-Date:    Thu Mar 15 07:18:49 GMT 2007
>Last-Modified:  Thu Mar 15 07:18:49 GMT 2007
>Originator:     rootd
>Release:        FreeBSD 6.0
>Organization:
>Environment:
FreeBSD freeserv 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Tue May 30 18:10:05 MSD 2006     admin@sysadmin:/usr/src/sys/i386/compile/SERV  i386
>Description:
     :
          smbfs           !      .

>How-To-Repeat:
# md ~/test
# cd ~/test
# pwd
/root/test
# rd ~/test
# mount_smbfs -E koi8-r:cp866 -W filial3  //admin@dc001/shared smb123
#ls
smb1 smb2 smb3
#mount
...
//ADMIN@DC001/SHARED on . (smbfs)


>Fix:
    mount_smb  -         
>Release-Note:
>Audit-Trail:

From: Tarc <tarc@tarc.po.cs.msu.su>
To: bug-followup@FreeBSD.org, rootd <rootd@mail.ru>
Cc:  
Subject: i386/99363: =?koi8-r?B?79vJwsvB?= mount_smb
Date: Sat, 24 Jun 2006 01:34:03 +0400

 English please.
 
 Possible message translation follows:
 -------------------------------------------------
 
 >Description:                                                                                        
 If you remove current directory, you can mount from other via smbfs and all still work
 
 >How-To-Repeat:                                                                                      
 # md ~/test
 # cd ~/test
 # pwd
 /root/test
 # rd ~/test
 # mount_smbfs -E koi8-r:cp866 -W filial3  //admin@dc001/shared smb123
 #ls
 smb1 smb2 smb3
 #mount
 ...
 //ADMIN@DC001/SHARED on . (smbfs)
 
 
 >Fix:                                                                                                
 Possible error is in mount_smb - here don't check about existence mount target directory
 -- 
    Best regards,
    	Arseny Nasokin
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Fri Jan 26 21:23:22 UTC 2007 
State-Changed-Why:  
OK, i am totally not seeing the issue here. You are talking about a testdirectory 
and then smb123, what is the problem ? 


Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Fri Jan 26 21:23:22 UTC 2007 
Responsible-Changed-Why:  
grab the pr 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99363 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Thu Mar 15 07:18:47 UTC 2007 
State-Changed-Why:  
This is just mixed up understanding of how the software works. If you 
delete a directory and not leave that space, you can still use the 
current path to access it (since you are "locking" the update). If you 
are going outside the directory it would not be able to be mounted on 
the previous place again since the lock is gone and the environment 
information is updated (telling you that the directory is not there 
anymore). With this; close the ticket 

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