X-Loop: help-debbugs@HIDDEN Subject: bug#23950: An enhancement request Resent-From: "Dr. Randall Fisher" <randall.fisher@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-diffutils@HIDDEN Resent-Date: Mon, 11 Jul 2016 22:43:01 +0000 Resent-Message-ID: <handler.23950.B.146827697730431 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 23950 X-GNU-PR-Package: diffutils X-GNU-PR-Keywords: To: 23950 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-diffutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.146827697730431 (code B ref -1); Mon, 11 Jul 2016 22:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2016 22:42:57 +0000 Received: from localhost ([127.0.0.1]:47314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1bMjui-0007ul-QM for submit <at> debbugs.gnu.org; Mon, 11 Jul 2016 18:42:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <randall.fisher@HIDDEN>) id 1bMjt4-0007s2-Hg for submit <at> debbugs.gnu.org; Mon, 11 Jul 2016 18:41:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <randall.fisher@HIDDEN>) id 1bMjsy-0008U9-6s for submit <at> debbugs.gnu.org; Mon, 11 Jul 2016 18:41:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,T_HK_NAME_FM_DR autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <randall.fisher@HIDDEN>) id 1bMjsy-0008U4-3t for submit <at> debbugs.gnu.org; Mon, 11 Jul 2016 18:41:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <randall.fisher@HIDDEN>) id 1bMjsv-0004hw-N6 for bug-diffutils@HIDDEN; Mon, 11 Jul 2016 18:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <randall.fisher@HIDDEN>) id 1bMjst-0008TV-E8 for bug-diffutils@HIDDEN; Mon, 11 Jul 2016 18:41:04 -0400 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:36361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <randall.fisher@HIDDEN>) id 1bMjst-0008TM-8r for bug-diffutils@HIDDEN; Mon, 11 Jul 2016 18:41:03 -0400 Received: by mail-qk0-x233.google.com with SMTP id 82so105975707qko.3 for <bug-diffutils@HIDDEN>; Mon, 11 Jul 2016 15:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=nhuu3X/0gUQ0wJXxYvBIDEeAnkIMvv4O3GI7Mml76aM=; b=P9I+qywT3b3SVW90LqUF7KzB+MsWj6HynpMkUa/t51AEVUzgPv3NDDorOj7/LR/fxI oBwoHGiy6l4pueAhhy3g/KtHw0k5+5IQEq9iywRpLTBrr0SJnrQgHwLA+96S1GUOx+0/ Vb1Aw4I+ikuoRO8X+jfrYqKApYJDwN7/p565BcB57QFSXotRDrELSPuaT90chOhjEwwO OlH0LiOuso5H0PqH6Vq7VsDaQpqiQTB8/duIfJYd9LennSjE0U4iHam7mkkIacITGGRU b0/ul7A1BKugXC/2efo50QtEfQmN4g+tp357gmhkfdTUe2b/I2UMmHMHiyzM8gNHCPsG boEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=nhuu3X/0gUQ0wJXxYvBIDEeAnkIMvv4O3GI7Mml76aM=; b=i4vLhmHJJ7hOhBHXGTi1qbfR+kx8FRkpC2oc2mkfCXbECj1m8jaZtYSaFS3U9DoR5u wd1Sr1w58UWJzK/NCEY/4XWOT61I8OUbALXLq9rgUTyDlyc752egyzxR6YUgrCV70/cp qASEvYznncNV8TD3xvyNkGw2M/9g5dqlspWZnm1f4k05Gtn015sSe/OgolKyBxstAZeL zvg6cPCHB/rZQ7SRnXwAsW0E/nA4DzqEVtsxvRowWjsuP5RrHeZXfzsb5kSwxrI10k9W VJG2EGVYPUBM+D9yBpbSSLRouuqWDb3SrQ3mxVQVD9/9Tfl7fu8xzDDfH2yKGcHxsWv6 1XxA== X-Gm-Message-State: ALyK8tJUHiqr2d7Gb1t6WsDJP3Pan3aWDWYRQPVHIMhLDSmiJwV2RNhxLSYA5uVRPEllvw0CRMly5ff7dpVYoQ== X-Received: by 10.55.203.156 with SMTP id u28mr29305679qkl.116.1468276861324; Mon, 11 Jul 2016 15:41:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.35.139 with HTTP; Mon, 11 Jul 2016 15:41:00 -0700 (PDT) From: "Dr. Randall Fisher" <randall.fisher@HIDDEN> Date: Mon, 11 Jul 2016 18:41:00 -0400 X-Google-Sender-Auth: tLCZGUmFnJl0T5GGkzBfreirgWw Message-ID: <CAKauvBKnCf3WcMb22NJPbVOqBZeYar+0iTYEcHnyP=kWSAD1bA@HIDDEN> Content-Type: multipart/alternative; boundary=001a1146dcb0c05b9b053763d89a X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Mon, 11 Jul 2016 18:42:55 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) --001a1146dcb0c05b9b053763d89a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I use "diff -r" when comparing a directory tree to a copy that I have made when the storage media is questionable. There are often broken symlinks in the original (usually a backup from some defunct machine). When I do the diff, I get thousands of messages along the lines of : diff: gecko-clone-100714/var/X11R6/lib/xkb/xkbcomp: No such file or directory diff: /home2/Backups/gecko-clone-100714/var/X11R6/lib/xkb/xkbcomp: No such file or directory There are also messages along the lines of: X/afifo is a fifo while Y/afifo is a fifo ... or a socket or a character special, etc. =E2=80=8BThese aren't really useful in this context and bury any really imp= ortant errors.=E2=80=8B Could you add switches to : 1. Not dereference symlinks, but compare the symlink itself (i.e. no message if they point to the same non-existant place)? 2. Not report the "this is an orange while that is an orange" messages? =E2=80=8BThank you, Randy Fisher=E2=80=8B --=20 Randall Fisher, Ph.D. randall.fisher@HIDDEN randall.fisher@HIDDEN --001a1146dcb0c05b9b053763d89a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">Hi,= <br><br></div><div class=3D"gmail_default" style=3D"font-size:small">I use = "diff -r" when comparing a directory tree to a copy that I have m= ade when the storage media is questionable.=C2=A0 There are often broken sy= mlinks in the original (usually a backup from some defunct machine).=C2=A0 = When I do the diff, I get thousands of messages along the lines of :<br><br= >diff: gecko-clone-100714/var/X11R6/lib/xkb/xkbcomp: No such file or direct= ory<br>diff: /home2/Backups/gecko-clone-100714/var/X11R6/lib/xkb/xkbcomp: N= o such file or directory<br><br></div><div class=3D"gmail_default" style=3D= "font-size:small">There are also messages along the lines of:<br><br></div>= <div class=3D"gmail_default" style=3D"font-size:small">X/afifo is a fifo wh= ile Y/afifo is a fifo<br></div><div class=3D"gmail_default" style=3D"font-s= ize:small">... or a socket or a character special, etc.<br clear=3D"all"></= div><br><div class=3D"gmail_default" style=3D"font-size:small">=E2=80=8BThe= se aren't really useful in this context and bury any really important e= rrors.=E2=80=8B<br><br></div><div class=3D"gmail_default" style=3D"font-siz= e:small">Could you add switches to :<br></div><div class=3D"gmail_default" = style=3D"font-size:small">=C2=A0=C2=A0=C2=A0 1. Not dereference symlinks, b= ut compare the symlink itself (i.e. no message if they point to the same no= n-existant place)?<br></div><div class=3D"gmail_default" style=3D"font-size= :small">=C2=A0=C2=A0=C2=A0 2. Not report the "this is an orange while = that is an orange" messages?<br></div><br><div class=3D"gmail_default"= style=3D"font-size:small">=E2=80=8BThank you,<br><br></div><div class=3D"g= mail_default" style=3D"font-size:small">Randy Fisher=E2=80=8B</div><br>-- <= br><div class=3D"gmail_signature" data-smartmail=3D"gmail_signature">Randal= l Fisher, Ph.D.<br><a href=3D"mailto:randall.fisher@HIDDEN" target=3D"_bl= ank">randall.fisher@HIDDEN</a><br><a href=3D"mailto:randall.fisher@HIDDEN= g" target=3D"_blank">randall.fisher@HIDDEN</a><br></div> </div> --001a1146dcb0c05b9b053763d89a--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: "Dr. Randall Fisher" <randall.fisher@HIDDEN> Subject: bug#23950: Acknowledgement (An enhancement request) Message-ID: <handler.23950.B.146827697730431.ack <at> debbugs.gnu.org> References: <CAKauvBKnCf3WcMb22NJPbVOqBZeYar+0iTYEcHnyP=kWSAD1bA@HIDDEN> X-Gnu-PR-Message: ack 23950 X-Gnu-PR-Package: diffutils Reply-To: 23950 <at> debbugs.gnu.org Date: Mon, 11 Jul 2016 22:43:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-diffutils@HIDDEN If you wish to submit further information on this problem, please send it to 23950 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 23950: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23950 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#23950: [bug-diffutils] bug#23950: An enhancement request Resent-From: Dave Gordon <david.s.gordon@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-diffutils@HIDDEN Resent-Date: Wed, 13 Jul 2016 12:17:02 +0000 Resent-Message-ID: <handler.23950.B23950.146841217831390 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 23950 X-GNU-PR-Package: diffutils X-GNU-PR-Keywords: To: "Dr. Randall Fisher" <randall.fisher@HIDDEN>, 23950 <at> debbugs.gnu.org Received: via spool by 23950-submit <at> debbugs.gnu.org id=B23950.146841217831390 (code B ref 23950); Wed, 13 Jul 2016 12:17:02 +0000 Received: (at 23950) by debbugs.gnu.org; 13 Jul 2016 12:16:18 +0000 Received: from localhost ([127.0.0.1]:49133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1bNJ5O-0008AE-1T for submit <at> debbugs.gnu.org; Wed, 13 Jul 2016 08:16:18 -0400 Received: from mga01.intel.com ([192.55.52.88]:52199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <david.s.gordon@HIDDEN>) id 1bNJ5M-0008A1-64 for 23950 <at> debbugs.gnu.org; Wed, 13 Jul 2016 08:16:17 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 13 Jul 2016 05:16:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,357,1464678000"; d="scan'208";a="845476813" Received: from dsgordon-linux2.isw.intel.com (HELO [10.102.226.88]) ([10.102.226.88]) by orsmga003.jf.intel.com with ESMTP; 13 Jul 2016 05:16:04 -0700 References: <CAKauvBKnCf3WcMb22NJPbVOqBZeYar+0iTYEcHnyP=kWSAD1bA@HIDDEN> From: Dave Gordon <david.s.gordon@HIDDEN> Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ Message-ID: <57863102.6020106@HIDDEN> Date: Wed, 13 Jul 2016 13:16:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <CAKauvBKnCf3WcMb22NJPbVOqBZeYar+0iTYEcHnyP=kWSAD1bA@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -6.3 (------) On 11/07/16 23:41, Dr. Randall Fisher wrote: > Hi, > > I use "diff -r" when comparing a directory tree to a copy that I have made > when the storage media is questionable. There are often broken symlinks in > the original (usually a backup from some defunct machine). When I do the > diff, I get thousands of messages along the lines of : > > diff: gecko-clone-100714/var/X11R6/lib/xkb/xkbcomp: No such file or > directory > diff: /home2/Backups/gecko-clone-100714/var/X11R6/lib/xkb/xkbcomp: No such > file or directory > > There are also messages along the lines of: > > X/afifo is a fifo while Y/afifo is a fifo > ... or a socket or a character special, etc. > > These aren't really useful in this context and bury any really important > errors. > > Could you add switches to : > 1. Not dereference symlinks, but compare the symlink itself (i.e. no > message if they point to the same non-existant place)? > 2. Not report the "this is an orange while that is an orange" messages? > > Thank you, > Randy Fisher Maybe diff(1) isn't the right tool? Have you considered using rsync(1) with the -vn options (verbose reporting, no actual transfers) to see what differs between the two trees? If you doubt the integrity of the storage medium, you might want to add "-C" (use checksums) as well, thus $ rsync -aHvCn src/ dest/ sending incremental file list ./ bxt_dmc_ver1.bin -> bxt_dmc_ver1_07.bin sent 510 bytes received 22 bytes 1,064.00 bytes/sec total size is 404,951 speedup is 761.19 (DRY RUN) The output should list every directory checked (lines ending /) plus those nondirectory objects which differ between src and dest (lines not ending /) -- the latter are presumably what you're interested in. HTH, .Dave.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.