From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 18:30:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4321316A41F for ; Tue, 23 Aug 2005 18:30:06 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id B443743D48 for ; Tue, 23 Aug 2005 18:30:05 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout7.cac.washington.edu (8.13.4+UW05.04/8.13.4+UW05.05) with ESMTP id j7NIU5ND025980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 23 Aug 2005 11:30:05 -0700 X-Auth-Received: from [128.208.4.11] (shiina.dyn.cs.washington.edu [128.208.4.11]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.4+UW05.04/8.13.4+UW05.07) with ESMTP id j7NIU4VE030135 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 23 Aug 2005 11:30:05 -0700 Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <20050823083301.B20562@shared10.hosting.flyingcroc.net> References: <20050823104057.A7FCA4BEAD@ws1-1.us4.outblaze.com> <20050823083301.B20562@shared10.hosting.flyingcroc.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4BD07DF6-78CD-489E-B1CA-4133D12A9126@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Tue, 23 Aug 2005 11:30:45 -0700 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.734) Subject: Re: what is stuck here?! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 18:30:06 -0000 On Aug 23, 2005, at 8:34 AM, dpk wrote: > On Tue, 23 Aug 2005, Fafa Hafiz Krantz wrote: > > >> >> hello! >> >> how come *nothing* happens when i rm -rf directory/? >> it just won't move ... >> >> top from another terminal tells me: >> 55272 root 116 0 14396K 13768K RUN 0:27 36.13% 35.40% rm >> >> what? the directory/ only contains a .maildir/, a .muttrc and an >> empty directory >> it's not an immutable flag that has been set, >> chflags -R nouchg directory/ stands equally still to rm -rf >> > > It's probably busy calculating the list of directory entries to > remove. If > you have /proc mounted try: > > truss -p 55272 > > to see what it is doing. If you don't, and you have KTRACE in your > kernel, > you can try: > > ktrace -i -d -p 55272 > kdump -l > > to monitor the process. Do you have any open filehandles as well in that directory? I could see this as being a problem if a program is keeping one or more files open in a directory and in fact the program is blocking rm -rf from completing its task. However, I've never seen Unix do this before; this would instead be a problem inherent of Windows. -Garrett