mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
fix(defaults): set 'fsync' #26039
backport #26034 Problem: 'nofsync' may lose data if the system has a hard shutdown. #9888 Solution: Change default to 'fsync'. This may be revisited in the future when 'nofsync' can be made safer. Co-authored-by: Ploum <1233155+ploum@users.noreply.github.com>
This commit is contained in:
@@ -50,6 +50,7 @@ describe('fileio', function()
|
||||
|
||||
it('fsync() codepaths #8304', function()
|
||||
clear({ args={ '-i', 'Xtest_startup_shada',
|
||||
'--cmd', 'set nofsync',
|
||||
'--cmd', 'set directory=Xtest_startup_swapdir' } })
|
||||
|
||||
-- These cases ALWAYS force fsync (regardless of 'fsync' option):
|
||||
|
Reference in New Issue
Block a user