Gentoo Archives: gentoo-user

From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
Date: Tue, 30 Sep 2008 22:11:17
Message-Id: 48e2a3fc.ZjRG0igB1RDtRag5%Joerg.Schilling@fokus.fraunhofer.de
In Reply to: Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once by Neil Bothwick
1 Neil Bothwick <neil@××××××××××.uk> wrote:
2
3 > On Tue, 30 Sep 2008 12:38:16 -0400, Andrey Vul wrote:
4 >
5 > > However, I don't know how to use the output of "find cd-root -type f
6 > > -or -type l | xargs sha1sum -b" to find duplicate files. Maybe someone
7 > > can donate a perl/python script to find duplicate files and list them?
8 >
9 > emerge -av app-misc/fdupes
10 > fdupes -r cd-root
11
12 This may help in case there are files that have the same content but are not
13 hardlinked together.
14
15 Mkisofs checks for pysically and virtually (e.g. via -graft-points) hard linked
16 files. Files with the same inode number appear only once in the .iso image
17 created by mkisofs.
18
19 The patch with -duplicates-once is from before December 2001 in a time where
20 POSIX did not allow 64 bit inode numbers. At that time, Cygwin did not work
21 properly as it hashed 64 bit NTFS inode numbers to 32 bit numbers. Since a long
22 time, Cygwin just uses 64 bit inode numbers for NTFS and mkisofs has no problem
23 to detect hard lionked files.
24
25 Jörg
26
27 --
28 EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin
29 js@××××××××××××.de (uni)
30 schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/
31 URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily