Subject: Re: [vserver] Copy-on-write Hard Links, Shared Libraries, Prelink and Memory
From: Gordan Bobic <gordan@bobich.net>
Date: Wed, 09 Jun 2010 17:01:12 +0100

On 06/09/2010 04:57 PM, Eugen Leitl wrote:
> On Wed, Jun 09, 2010 at 02:48:13AM -0500, Corey Wright wrote:
>
>> # hashify a vserver
>> vserver ${VSERVER_NAME} hashify
>>
>> # delete hashed files orphaned by all vservers
>> find /etc/vservers/.defaults/apps/vunify/hash/00/ -type f -links 1 -exec rm
>> -f {} \;
>>
>> it is left as an exercise to the reader to find documentation referencing
>> the above commands.
>>
>> i have a cron job that hashifies once a day and i manually clean-up the hash
>> directory when ever i think about it (like right now ;-).
>
> 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?

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?

Gordan