Re: [vserver] Copy-on-write Hard Links, Shared Libraries, Prelink and Memory

From: JF Straeten <jfstraeten_at_scarlet.be>
Date: Wed 09 Jun 2010 - 17:24:23 BST
Message-ID: <20100609162423.GB26917@hermes.jfs.dt>

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.
Received on Wed Jun 9 17:23:07 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 09 Jun 2010 - 17:23:10 BST by hypermail 2.1.8