From owner-freebsd-bugs@FreeBSD.ORG Tue May 11 05:40:26 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 579D216A4CE for ; Tue, 11 May 2004 05:40:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08FA243D1F for ; Tue, 11 May 2004 05:40:26 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i4BCePHI045549 for ; Tue, 11 May 2004 05:40:25 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4BCeP54045548; Tue, 11 May 2004 05:40:25 -0700 (PDT) (envelope-from gnats) Resent-Date: Tue, 11 May 2004 05:40:25 -0700 (PDT) Resent-Message-Id: <200405111240.i4BCeP54045548@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Carlos A M dos Santos Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CEC716A4CE for ; 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 ; Tue, 11 May 2004 05:38:44 -0700 (PDT) (envelope-from casantos@urisan.tche.br) Received: from localhost (localhost.localdomain [127.0.0.1]) i4BCX3E11322 for ; 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 To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/66523: atacontrol allows to detach a channel in which there aremounted filesystems X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Carlos A M dos Santos List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 12:40:26 -0000 >Number: 66523 >Category: bin >Synopsis: atacontrol allows to detach a channel in which there are mounted filesystems >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 11 05:40:25 PDT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: