On Sun, Jun 17, 2012 at 09:40:49PM +0200, Sandro Tosi wrote: > On Fri, Jul 31, 2009 at 12:56 AM, Javier Fernández-Sanguino Peña > <j...@computer.org> wrote: > > > > tags 284274 patch > > thanks > > > > Attached is a patch to the program sources (through the use of a dpatch > > patch > > in the Debian package) that adds a new -L / --linkhard option to fdupes. > > This > > option will replace all duplicate files with hardlinks which is useful in > > order to reduce space. > > > > It has been tested only slightly, but the code looks (to me) about right. > > > > Please consider this patch and include it in the Debian package. > > As it turned out[1] this patch loses data if some of the file to > replace are on different filesystems. I'm going to remove it from the > package for now, but i'd be happy to evaluate a new patch.
It might not be too difficult to introduce a check in the patch that tries the hard link and, if it fails, it restores the file and complains. I'll see what I can do. Regards Javier
signature.asc
Description: Digital signature