Re: Delete a file THAT big? Surely you are joking.

[prev] [thread] [next] [lurker] [Date index for 2006/12/18]

From: Martin Ebourne
Subject: Re: Delete a file THAT big? Surely you are joking.
Date: 17:39 on 18 Dec 2006
Jonathan Stowe <gellyfish@xxxxxxxxx.xxx> wrote:
> On Mon, 2006-12-18 at 17:52 +0100, S=C3=A9bastien Aperghis-Tramoni wrote:
>> Yossi Kreinin wrote:
>> > * Why didn't rm say they were open?
>>
>> I'm not sure it can know.
>>
>> > * And by which process, so I'd know if it's OK to kill it?
>>
>> As Martin said, lsof(8) and fuser(1) are your friends.
>
> So it can know if it wanted to - don't apologize for the software when
> you are supposing to be hating it!

Oh yeah, sure. lsof can take quite a while to run on a big machine. =20
I'd just love rm to slow down by that much for this fringe case.

Or maybe the kernel should maintain an extra hashmap so you can look =20
up processes using a file by filename effeciently?

Oh yes, I'm hating this already.

Cheers,

Martin.
There's stuff above here

Generated at 03:01 on 20 Dec 2006 by mariachi 0.52