Subject: Re: port-i386/19611 - amd(8) does not manage well removable media
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: netbsd-bugs
Date: 09/06/2005 13:21:01
The following reply was made to PR port-i386/19611; it has been noted by GNATS.
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: Igor Sobrado <sobrado@string1.ciencias.uniovi.es>,
Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: port-i386/19611 - amd(8) does not manage well removable media
Date: Tue, 06 Sep 2005 15:20:39 +0200
Two comments:
(1) The PR should be assigned to 'bin', not 'port-i386'.
(2) The PR is really against eject(1) which unmounts removable media if
it was mounted before ejecting - something that amd does not like when
it owns the mount.
IMHO, the proper fix would be: Teach eject(1) to check if the mount in
question is administrated by amd(8). If yes, amq -u the mount, and if
that doesn't work because of open files then do not eject, and error
out. A tool for listing who has files open below a directory would be
nice to have in the NetBSD distribution (lsof?).
There is an 'am-eject' script in the am-utils distribution but that is
horribly broken, and has it backwards because it wraps eject(1).
hauke
--
/~\ The ASCII Ribbon Campaign Hauke Fath
\ / No HTML/RTF in email Institut für Nachrichtentechnik
X No Word docs in email TU Darmstadt
/ \ Respect for open standards Ruf +49-6151-16-3281