bin/66523: atacontrol allows to detach a channel in which there
aremounted filesystems
Carlos A M dos Santos
casantos at urisan.tche.br
Tue May 11 05:40:26 PDT 2004
>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 at 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:
More information about the freebsd-bugs
mailing list