Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 09:48:30 -0300 (BRT)
From:      Carlos A M dos Santos <casantos@urisan.tche.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/66523: atacontrol allows to detach a channel in which there aremounted filesystems
Message-ID:  <20040511094727.K1134@avatar.casantos.org>
Resent-Message-ID: <200405111240.i4BCeP54045548@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040511094727.K1134>