Subject: Re: [vserver] Copy-on-write Hard Links, Shared Libraries, Prelink and Memory
From: "JF Straeten" <jfstraeten@scarlet.be>
Date: Wed, 9 Jun 2010 18:24:23 +0200

On Wed, Jun 09, 2010 at 05:01:12PM +0100, Gordan Bobic wrote:

>>> # delete hashed files orphaned by all vservers
>>> find /etc/vservers/.defaults/apps/vunify/hash/00/ -type f -links 1 -exec rm
>>> -f {} \;

[...]

>> Uh, sorry to be brain-damaged, but which directory do you mean?
>> /etc/vservers/.defaults/apps/vunify/hash/00/ ?
>>
>> Can you cut&  paste the exact rm command you use?

find /srv/vservers/.hash -type f -links 1 -print0 | xargs -0 rm


> He did. The find command execs 'rm -f' on all the files it finds
> that have a hard link count of 1. Or am I misunderstanding your
> question?

Yes, but it should be without the trailing "00/" part, isn't it ?

A+

-- 

JFS.