Antonio Diaz Diaz wrote:
I am considering a different approach for lzip; adding a new option, say '-y, --fsync', to call fsync when acting in-place. This provides safety to those needing it without slowing down the work of everybody else. Especially of those (de)compressing a lot of replaceable files in-place.
Yes, I considered an --fsync option as well, but worried about making the default unsafe. How about if gzip and lzip instead add a --no-fsync option for people who don't need the safety?