GNU bug report logs - #50097
gzip: add "--keep" option to keep original files unchanged

Previous Next

Package: gzip;

Reported by: Krzysztof Żelechowski <giecrilj <at> stegny.2a.pl>

Date: Tue, 17 Aug 2021 17:45:01 UTC

Severity: wishlist

Full log


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

From: Krzysztof Żelechowski <giecrilj <at> stegny.2a.pl>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Jim Meyering <jim <at> meyering.net>, "Adler,
 Mark" <madler <at> alumni.caltech.edu>
Cc: Rodrigo Campos <rodrigo <at> sdfg.com.ar>,
 "50097 <at> debbugs.gnu.org" <50097 <at> debbugs.gnu.org>,
 Antonio Diaz Diaz <antonio <at> gnu.org>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Sun, 22 Aug 2021 13:31:34 +0200
Dnia niedziela, 22 sierpnia 2021 13:21:45 CEST Adler, Mark pisze:
> Just for information, up to now, pigz would merrily unlink the hard link of
> the input file, even if it has other hard links. While I’m not sure I
> understand why it shouldn’t do that (that is in fact what you asked it to
> do), in the spirit of behaving mostly like gzip, it will now* not

I assumed we wanted to prevent the possibility that we would overwrite and 
rename the file instead of removing it.  I understand that it is not the 
current approach and it stinks of data loss but it possible to do it that way, 
e.g. if the underlying file system is transactional; in that case, the 
difference would not be observable.

Chris






This bug report was last modified 3 years and 78 days ago.

Previous Next


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