GNU bug report logs - #22768
Crash safety

Previous Next

Package: gzip;

Reported by: Yanyan Jiang <jiangyy <at> outlook.com>

Date: Mon, 22 Feb 2016 16:02:02 UTC

Severity: normal

Merged with 22770

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bob Proulx <bob <at> proulx.com>
To: 22768 <at> debbugs.gnu.org
Cc: Yanyan Jiang <jiangyy <at> outlook.com>, Antonio Diaz Diaz <antonio <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#22768: Crash safety
Date: Fri, 26 Feb 2016 17:46:58 -0700
Antonio Diaz Diaz wrote:
> Paul Eggert wrote:
> >And this suggests that any long option name shouldn't be something
> >syscall-specific like '--no-fsync', but should instead be something more
> >general and easy to remember, e.g., '--hasty'.
> 
> I had to search 'hasty' in the dictionary, so I think it is perhaps not so
> good and easy to remember for non-English speakers. OTOH, many people using
> a CLI know what 'fsync' or 'sync' mean.

Worse is that one program chooses "hasty".  Another chooses "quick".
Another "hurried", "fast", "rapid", "swift".  It becomes impossible to
remember what each program uses.  Keeping to what it does seems least
surprising and in this case it is either --fsync or --sync.

> Just now my preference is to make the behavior optional and call the option
> --fsync. I think both points meet the principle of least surprise.

I would much prefer the above of an option to enable it rather than
one to disable it.  Otherwise I have to go through workarounds to
avoid it in order to have the performance that used to be the default.

It has been many decades with the cached behavior and apparently
without significant issues due to it.  Large changes should be made
slowly as an option rather than abruptly as the default.

Bob




This bug report was last modified 9 years and 74 days ago.

Previous Next


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