Hey all,

So using cp -lr is a very effective way to speed up and save space when
patching very large codetrees, but I'm interested in what's going on
beneath.

When patch changes a hard linked file, it relinks it so that it becomes a
new file (reference to an inode). I'm assuming it does this explicitly,
because hard links would be pretty useless if it didn't. :-)

Is there a shortcut to doing this all the time, however? I'd like to keep
two trees of files, one owned as root, and one as a user, and have the
user's files relinked if he/she changes anything. Doable? Can it be done
with chattr options, or can it only be done via the software?

Thanks,

- Jeff

-- 
   "I think it will be admitted by all that to have exploited so great a    
     scientific invention for the purpose and pursuit of entertainment      
    alone would have been a prostitution of its powers and an insult to     
        the character and intelligence of the people." - John Reith         
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to