GNU bug report logs - #42620
hard link improvement for gzip (wishlist item)

Previous Next

Package: gzip;

Reported by: Harald Dunkel <harald.dunkel <at> aixigo.com>

Date: Thu, 30 Jul 2020 15:37:01 UTC

Severity: wishlist

Full log


Message #11 received at 42620 <at> debbugs.gnu.org (full text, mbox):

From: Harald Dunkel <harald.dunkel <at> aixigo.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 42620 <at> debbugs.gnu.org
Subject: Re: bug#42620: hard link improvement for gzip (wishlist item)
Date: Fri, 31 Jul 2020 08:26:05 +0200
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




This bug report was last modified 4 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.