On Tue, 3 August 2004 12:28:21 -0400, Matt Ayres wrote: > > There is vunify which is part of util-vserver package. What is better for general > usage is Sam's unify-dirs script. It is located at > http://mirrors.paul.sladen.org/sam.vilain.net/vserver/unify-dirs. > Just use this without the -l or -i options and it will just do hard links, which is > what you want for the current implementation of cow links.
Darn! Doesn't work for me yet. One personal problem is a slow (USB1) 300GB hard-drive that contains some identical files. I was thinking about hashing only the first 4k or so of each file and the do a direct comparison in case of hash collision. Even with sha1 over the complete file, there is no guarantee that a hash collision means two identical files. Also, I want a database with all already known files. Untimately this could be turned into a daemon that watches the complete fs tree for changes and turns new files into cowlinks shortly after creation. With such a daemon, "cp -r" will temporarily flush part of the page cache, have the same result as "cowcopy -r". Still interesting reading, thanks. J�rn -- Data expands to fill the space available for storage. -- Parkinson's Law _______________________________________________ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
