From 9f0beedd556daabd2ef48e05ead3fdab68598d2a Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 22 Jun 2020 16:43:26 +0300 Subject: storage/posix, libglusterfs: library function to sync filesystem Convert an ad-hoc hack to a regular library function gf_syncfs(). Signed-off-by: Dmitry Antipov Change-Id: I3ed93e9f28f22c273df1466ba4a458eacb8df395 Fixes: #1329 --- libglusterfs/src/glusterfs/common-utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/glusterfs') diff --git a/libglusterfs/src/glusterfs/common-utils.h b/libglusterfs/src/glusterfs/common-utils.h index 1954cca639f..8948fada7c3 100644 --- a/libglusterfs/src/glusterfs/common-utils.h +++ b/libglusterfs/src/glusterfs/common-utils.h @@ -1204,6 +1204,9 @@ find_xlator_option_in_cmd_args_t(const char *option_name, cmd_args_t *args); int gf_d_type_from_ia_type(ia_type_t type); +int +gf_syncfs(int fd); + int gf_nanosleep(uint64_t nsec); -- cgit