From unknown Thu Jun 19 14:04:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42620 <42620@debbugs.gnu.org> To: bug#42620 <42620@debbugs.gnu.org> Subject: Status: hard link improvement for gzip (wishlist item) Reply-To: bug#42620 <42620@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:33 +0000 retitle 42620 hard link improvement for gzip (wishlist item) reassign 42620 gzip submitter 42620 Harald Dunkel severity 42620 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 30 11:36:38 2020 Received: (at submit) by debbugs.gnu.org; 30 Jul 2020 15:36:38 +0000 Received: from localhost ([127.0.0.1]:36583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1Abl-0008Td-Dg for submit@debbugs.gnu.org; Thu, 30 Jul 2020 11:36:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:39124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k13nw-0001Xh-Lo for submit@debbugs.gnu.org; Thu, 30 Jul 2020 04:20:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k13nw-0002Zj-HB for bug-gzip@gnu.org; Thu, 30 Jul 2020 04:20:44 -0400 Received: from mail.aixigo.de ([5.145.142.10]:49041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k13nt-0004ne-Jk for bug-gzip@gnu.org; Thu, 30 Jul 2020 04:20:44 -0400 Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11]) by mail.aixigo.de (OpenSMTPD) with ESMTPS id 8c5a495f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 30 Jul 2020 10:19:34 +0200 (CEST) Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128]) by srvvm01.ac.aixigo.de (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 06U8JYrw2140658; Thu, 30 Jul 2020 10:19:34 +0200 To: bug-gzip@gnu.org From: Harald Dunkel Subject: hard link improvement for gzip (wishlist item) Message-ID: <8a031197-2f8b-50f9-57a9-c4160fc23cfd@aixigo.com> Date: Thu, 30 Jul 2020 10:19:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.2 at srvvm01.ac.aixigo.de X-Virus-Status: Clean Received-SPF: pass client-ip=5.145.142.10; envelope-from=harald.dunkel@aixigo.com; helo=mail.aixigo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/30 04:19:37 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 30 Jul 2020 11:36:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi folks, this could be improved: % ls -l >x; ln -f x y; gzip x y gzip: x has 1 other link -- unchanged gzip: y has 1 other link -- unchanged Regards Harri From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 30 12:48:45 2020 Received: (at 42620) by debbugs.gnu.org; 30 Jul 2020 16:48:45 +0000 Received: from localhost ([127.0.0.1]:36641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1BjY-0003uM-Nn for submit@debbugs.gnu.org; Thu, 30 Jul 2020 12:48:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1BjW-0003u5-9O for 42620@debbugs.gnu.org; Thu, 30 Jul 2020 12:48:44 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2EE191600C4; Thu, 30 Jul 2020 09:48:36 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id l8nBPRljbAdS; Thu, 30 Jul 2020 09:48:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7477A1600E9; Thu, 30 Jul 2020 09:48:35 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 67W76-VvGMJ8; Thu, 30 Jul 2020 09:48:35 -0700 (PDT) Received: from [192.168.1.9] (cpe-75-82-69-226.socal.res.rr.com [75.82.69.226]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 52F061600C4; Thu, 30 Jul 2020 09:48:35 -0700 (PDT) Subject: Re: bug#42620: hard link improvement for gzip (wishlist item) To: Harald Dunkel , 42620@debbugs.gnu.org References: <8a031197-2f8b-50f9-57a9-c4160fc23cfd@aixigo.com> From: Paul Eggert Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtF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LTU9HWDRPMEdBNlZPRXJ5TzdRUkNDWWFoM294U0czOElBbk5laXdK WGdVOUJ6a2s4NVVHCmJQRWQ3SEdGL1ZTZUhDUXdXb3U2anFVRFRTRHZuOVloTlRkRzBLWFBN NzRhQyt4cjJab3cxTzJtaFhpaGdXS0QKMER3KzBMWVBuVU9zUTBLT0Z4SFhYWUhtUnJTMU9a UFU1OUJMdmMrVFJoSWhhZlNIS0x3YlhLKzZja2t4Qng2aAo4ejVjY3BHMFFzNGJGaGRGWW5G ckVpZURMb0dtbkUyWUxoZFY2c3dKOVZOQ1M2cExpRW9oVDNmbTdhWG0xNXRaCk9JeXpNWmhI UlNBUGJsWHhRMFpTV2pxOG9ScmNZTkZ4YzRXMVVScEFrQkNPWUpvWHZRZkQ1TDNscUFsOFRD cUQKVXpZeGhIL3RKaGJEZEhycUhINzY3amFEYVRCMStUYWxwLzJBTUt3Y1hOT2Rpa2xHeGJt SFZHNllHbDZnOExyYgpzdTlOWkVJNHlMbEh6dWlrdGhKV2d6KzN2WmhWR3lObHQrSE5Jb0Y2 Q2pETDJvbXU1Y0VxNFJESE00NFFxUGs2Cmw3TzBwVXZOMW1UNEIrUzFiMDhSS3BxbS9mZjAx NUUzN0hOVi9waUl2Smx4R0FZejhQU2Z1R0NCMXRoTVlxbG0KZ2RoZDkvQmFiR0ZiR0dZSEE2 VTQvVDV6cVUrZjZ4SHkxU3NBUVoxTVNLbEx3ZWtCSVQrNC9jTFJHcUNIam5WMApxNUgvVDZh N3Q1bVBrYnpTck9MU280cHVqK0lUb05qWXlZSURCV3pobEExOWF2T2ErcnZVam1IdEQzc0ZO N2NYCld0a0dvaThidU5jYnk0VT0KPUFMNm8KLS0tLS1FTkQgUEdQIFBVQkxJQyBLRVkgQkxP Q0stLS0tLQo= Organization: UCLA Computer Science Department Message-ID: <903cb38e-29ef-98b3-da9b-13b10528a0c7@cs.ucla.edu> Date: Thu, 30 Jul 2020 09:48:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8a031197-2f8b-50f9-57a9-c4160fc23cfd@aixigo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 42620 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) On 7/30/20 1:19 AM, Harald Dunkel wrote: > this could be improved: >=20 > =C2=A0=C2=A0=C2=A0=C2=A0% ls -l >x; ln -f x y; gzip x y > =C2=A0=C2=A0=C2=A0=C2=A0gzip: x has 1 other link=C2=A0 -- unchanged > =C2=A0=C2=A0=C2=A0=C2=A0gzip: y has 1 other link=C2=A0 -- unchanged What improvement do you suggest? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 31 05:03:41 2020 Received: (at 42620) by debbugs.gnu.org; 31 Jul 2020 09:03:41 +0000 Received: from localhost ([127.0.0.1]:37309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1Qx2-0007zo-IS for submit@debbugs.gnu.org; Fri, 31 Jul 2020 05:03:41 -0400 Received: from mail.aixigo.de ([5.145.142.10]:46803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1OUc-0004E6-7N for 42620@debbugs.gnu.org; Fri, 31 Jul 2020 02:26:11 -0400 Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11]) by mail.aixigo.de (OpenSMTPD) with ESMTPS id c94bb02f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 31 Jul 2020 08:26:06 +0200 (CEST) Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128]) by srvvm01.ac.aixigo.de (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 06V6Q59K2315060; Fri, 31 Jul 2020 08:26:06 +0200 Subject: Re: bug#42620: hard link improvement for gzip (wishlist item) To: Paul Eggert , 42620@debbugs.gnu.org References: <8a031197-2f8b-50f9-57a9-c4160fc23cfd@aixigo.com> <903cb38e-29ef-98b3-da9b-13b10528a0c7@cs.ucla.edu> From: Harald Dunkel Message-ID: <5b9fcc76-b202-9026-9d53-b25dfd4a4155@aixigo.com> Date: Fri, 31 Jul 2020 08:26:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <903cb38e-29ef-98b3-da9b-13b10528a0c7@cs.ucla.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.2 at srvvm01.ac.aixigo.de X-Virus-Status: Clean X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 42620 X-Mailman-Approved-At: Fri, 31 Jul 2020 05:03:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Looking at a file with n references by hard links: n=1 is the trivial case. No changes needed. All involved directories are read-only: Another trivial case to be ignored here. For n>1: I would suggest that the file is compressed and the directory entries are adjusted accordingly, if the directories can be written. If some directories are read-only, then you end up with 2 files, the new compressed file and the old original still referenced in the read-only directories. The workaround for compressing a file with several references in the file system is *very* ugly, even if you know all paths pointing to it. And the need for compressing such a file comes up especially for large files, i.e. those files that are efficient to compress, but not easy to copy. Rotated log files with a size of a few GBytes, for example. Its just a suggestion, of course. Keep on your good work Harri From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 31 05:03:41 2020 Received: (at 42620) by debbugs.gnu.org; 31 Jul 2020 09:03:41 +0000 Received: from localhost ([127.0.0.1]:37311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1Qx3-0007zr-Hq for submit@debbugs.gnu.org; Fri, 31 Jul 2020 05:03:41 -0400 Received: from mail.aixigo.de ([5.145.142.10]:32584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1OmX-0004ia-9M for 42620@debbugs.gnu.org; Fri, 31 Jul 2020 02:44:41 -0400 Received: from srvvm01.ac.aixigo.de (mail.ac.aixigo.de [172.19.96.11]) by mail.aixigo.de (OpenSMTPD) with ESMTPS id b3d111b4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 31 Jul 2020 08:44:39 +0200 (CEST) Received: from dpcl082.ac.aixigo.de (dpcl082.ac.aixigo.de [172.19.97.128]) by srvvm01.ac.aixigo.de (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 06V6icqE2317427; Fri, 31 Jul 2020 08:44:39 +0200 Subject: Re: bug#42620: hard link improvement for gzip (wishlist item) From: Harald Dunkel To: Paul Eggert , 42620@debbugs.gnu.org References: <8a031197-2f8b-50f9-57a9-c4160fc23cfd@aixigo.com> <903cb38e-29ef-98b3-da9b-13b10528a0c7@cs.ucla.edu> <5b9fcc76-b202-9026-9d53-b25dfd4a4155@aixigo.com> Message-ID: <411d025f-95e0-71b4-d82f-f1eb7a2b5784@aixigo.com> Date: Fri, 31 Jul 2020 08:44:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <5b9fcc76-b202-9026-9d53-b25dfd4a4155@aixigo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.2 at srvvm01.ac.aixigo.de X-Virus-Status: Clean X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: 42620 X-Mailman-Approved-At: Fri, 31 Jul 2020 05:03:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) On 2020-07-31 08:26, Harald Dunkel wrote: > Looking at a file with n references by hard links: > > n=1 is the trivial case. No changes needed. > > All involved directories are read-only: Another trivial case > to be ignored here. > > For n>1: > > I would suggest that the file is compressed and the directory > entries are adjusted accordingly, if the directories can be > written. > PS: All paths to the file have to be given on the gzip command line, of course. I don't expect gzip to search for all references. Regards Harri