From casantos@urisan.tche.br  Tue May 11 05:38:46 2004
Return-Path: <casantos@urisan.tche.br>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0CEC716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 May 2004 05:38:46 -0700 (PDT)
Received: from gama-rt.urisan.tche.br (smtp.urisan.tche.br [200.213.37.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 25D2C43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 May 2004 05:38:44 -0700 (PDT)
	(envelope-from casantos@urisan.tche.br)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by gama-rt.urisan.tche.br (8.11.6p2/qmail.URI) with ESMTP id i4BCX3E11322
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 May 2004 09:33:04 -0300
Message-Id: <20040511094727.K1134@avatar.casantos.org>
Date: Tue, 11 May 2004 09:48:30 -0300 (BRT)
From: Carlos A M dos Santos <casantos@urisan.tche.br>
Reply-To: Carlos A M dos Santos <casantos@urisan.tche.br>
To: FreeBSD-gnats-submit@freebsd.org
Subject: atacontrol allows to detach a channel in which there are mounted
 filesystems

>Number:         66523
>Category:       bin
>Synopsis:       atacontrol(8) allows to detach a channel in which there are mounted filesystems
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 11 05:40:25 PDT 2004
>Closed-Date:    Thu Jan 05 00:21:41 GMT 2006
>Last-Modified:  Thu Jan 05 00:21:41 GMT 2006
>Originator:     Carlos A M dos Santos
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
Universidade Regional Integrada
>Environment:
System: FreeBSD avatar.casantos.org 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #3: Fri Apr 23 18:43:32 GMT 2004 root@avatar.casantos.org:/share/FreeBSD/5.2.1-RELEASE/src/sys/i386/compile/OptiPlex_GX1 i386
>Description:
	If one issues an "atacontrol detach chanel" command, the chanel will
	be detached even if there is a filesystem mounted on an attached
	device. Trying to unmount the filesystem hangs the system. It happened
	to me when I issued the atacontrol and umount commands in the wrong
	order.
>How-To-Repeat:
	Supposing one has a hard drive at ad2 (master at chanel 1) with a valid
	disklabel...

	# mount /dev/ad2s1a /mnt
	# atacontrol detach 1
	# umount /mnt
>Fix:

	Either atacontrol or the kernel should refuse to detach a busy channel.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Thu Jan 5 00:20:05 UTC 2006 
State-Changed-Why:  
If you shoot at your foot, what do you expect to hit ? 


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