]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: introduce virFileDataSync
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 24 Dec 2019 15:14:13 +0000 (15:14 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Jan 2020 15:42:12 +0000 (15:42 +0000)
commitea7b20a263f72e5ea4d4c680ff02bd44ac582963
treeb35ba9cc8ff80abd413a7fdcfea77a29c9021914
parentdac174ee07e8ce20aa0b6f21cb8d3b0c9302c0cb
util: introduce virFileDataSync

A wrapper that calls g_fsync on Win32/macOS and fdatasync
elsewhere. g_fsync is a stronger flush than we need but it
satisfies the caller's requirements & matches the approach
gnulib takes.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/storage/storage_util.c
src/util/iohelper.c
src/util/virfile.c
src/util/virfile.h