bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22768: Crash safety


From: Antonio Diaz Diaz
Subject: bug#22768: Crash safety
Date: Tue, 01 Mar 2016 19:13:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2

Paul Eggert wrote:
I know, but how can you guarantee that 'gzip --synchronous' will work on a system where the 'sync' above does not even guarantee that 'file.gz' is written to disk before 'file' is deleted?

Yes, I can guarantee that 'gzip --synchronous' will not lose data on any system conforming to POSIX with the Synchronized Input and Output option.

Unless someone has somehow disabled fsync, I guess. :-)

I am not questioning you. You know very well what you do. It is simply that I find the situation so chaotic that I think maybe better methods to ensure data permanence have yet to be developed.


Still, there are people who take these things seriously, and who use
file systems that are safe in the presence of crashes, and for these
people grep --synchronous should work.

What I ask myself is, are those people better served by adding --synchronous options to every tool, or by using a crash-tolerant file system[1]?

"At the ACM Symposium on Operating Systems Principles in October, MIT researchers will present the first file system that is mathematically guaranteed not to lose track of data during crashes."

[1] http://news.mit.edu/2015/crash-tolerant-data-storage-0824


As you said, gzip has run unsafely for decades without a failure.

I did not say that!

Sorry, I meant "without a reported failure".

My point is that if gzip has run unsafely for decades without a reported failure, maybe all those who take these things seriously are already using file systems safe enough to guarantee that well behaved tools like gzip do not lose data.


Best regards,
Antonio.

(No need to CC me. I am subscribed to bug-gzip).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]