aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os/fileio.c')
-rw-r--r--src/nvim/os/fileio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c
index ccf35fd57c..bb68326a03 100644
--- a/src/nvim/os/fileio.c
+++ b/src/nvim/os/fileio.c
@@ -229,7 +229,10 @@ int file_fsync(FileDescriptor *const fp)
return flush_error;
}
const int fsync_error = os_fsync(fp->fd);
- if (fsync_error != UV_EINVAL && fsync_error != UV_EROFS) {
+ if (fsync_error != UV_EINVAL
+ && fsync_error != UV_EROFS
+ // fsync not supported on this storage.
+ && fsync_error != UV_ENOTSUP) {
return fsync_error;
}
return 0;