A difficult filesystem

Andy Armstrong andy at hexten.net
Wed Jun 20 16:04:26 BST 2007


On 20 Jun 2007, at 14:12, Nick Cleaton wrote:
> Hmm, you could copy the source to the dest link by link.
>
> Every time you copy a file, create an extra hard link to it on the
> dest fs, under a name derived from its inode number on the source fs.
>
> Every time you go to copy a file, first check by inode number if you
> already have a link to it on the dest, and if so make an extra link on
> the dest instead of copying.
>
> Blat the tree of extra hardlinks on the dest when done.

Oooh, that's elegant. I like that. I'll give it a go, thanks Nick.

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list