From spf@Brice.dorm9.nccu.edu.tw  Wed Dec 18 12:20:39 2002
Return-Path: <spf@Brice.dorm9.nccu.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B2A3537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Dec 2002 12:20:39 -0800 (PST)
Received: from Brice.dorm9.nccu.edu.tw (Brice.dorm9.nccu.edu.tw [140.119.200.125])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 205A543E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Dec 2002 12:20:38 -0800 (PST)
	(envelope-from spf@Brice.dorm9.nccu.edu.tw)
Received: from Brice.dorm9.nccu.edu.tw (localhost.dorm9.nccu.edu.tw [127.0.0.1])
	by Brice.dorm9.nccu.edu.tw (8.12.6/8.12.6) with ESMTP id gBIKPbmC000443;
	Thu, 19 Dec 2002 04:25:37 +0800 (CST)
	(envelope-from spf@Brice.dorm9.nccu.edu.tw)
Received: (from spf@localhost)
	by Brice.dorm9.nccu.edu.tw (8.12.6/8.12.6/Submit) id gBIKPaAx000442;
	Thu, 19 Dec 2002 04:25:36 +0800 (CST)
Message-Id: <200212182025.gBIKPaAx000442@Brice.dorm9.nccu.edu.tw>
Date: Thu, 19 Dec 2002 04:25:36 +0800 (CST)
From: spf <spf@Brice.dorm9.nccu.edu.tw>
Reply-To: spf <spf@Brice.dorm9.nccu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc: spf@xslt.cs.nccu.edu.tw
Subject: mount_smbfs doesn't check if something is mounted on mount point
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46362
>Category:       bin
>Synopsis:       mount_smbfs doesn't check if something is mounted on mount point
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 18 12:30:01 PST 2002
>Closed-Date:    Tue Jun 17 06:09:39 PDT 2003
>Last-Modified:  Tue Jun 17 06:09:39 PDT 2003
>Originator:     spf
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD Brice.dorm9.nccu.edu.tw 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #15: Sun Nov 17 07:10:48 CST 2002 root@Brice.dorm9.nccu.edu.tw:/usr/obj/usr/src/sys/spf i386


	
>Description:
mount_smbfs doesn't check if something is mounted on mount point
use mount_smbfs to mount resources on used mount point
all mount_smbfs will success no matter where you mount it on
the output of df, mount will reaveal additional mount_smbfs rows

	
>How-To-Repeat:
mount_smbfs -I foo.com //spf@foo/e /samba/foo/e
mount_smbfs -I foo.com //spf@foo/e /samba/foo/e
mount_smbfs -I blah.com //spf@blah/test /samba/foo/e
mount_smbfs -I blah.com //spf@blah/test /mnt_d

df -h
/dev/ad0s5           5.9G   4.7G   1.2G    80%    /mnt_d
//SPF@FOO/E   	     5.3G   3.7G   1.6G    71%    /samba/foo/e
//SPF@FOO/E          5.3G   3.7G   1.6G    71%    /samba/foo/e
//SPF@BLAH/TEST      234G   212G    22G    91%    /samba/foo/e
//SPF@BLAH/TEST      234G   212G    22G    91%    /mnt_d

	
>Fix:

	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tjr 
State-Changed-When: Tue Jun 17 06:08:16 PDT 2003 
State-Changed-Why:  
Although this may seem strange, it's actual the correct traditional 
UNIX behaviour and what all other filesystems do. 

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