summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/glusterfs
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2020-06-22 16:43:26 +0300
committerDmitry Antipov <dmantipov@yandex.ru>2020-06-22 17:16:26 +0300
commit9f0beedd556daabd2ef48e05ead3fdab68598d2a (patch)
tree5757646631283da880ba49304c0bf6ea68821e35 /libglusterfs/src/glusterfs
parentc18782bc91bb028fe206996a7ef0075beabdf067 (diff)
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 <dmantipov@yandex.ru> Change-Id: I3ed93e9f28f22c273df1466ba4a458eacb8df395 Fixes: #1329
Diffstat (limited to 'libglusterfs/src/glusterfs')
-rw-r--r--libglusterfs/src/glusterfs/common-utils.h3
1 files changed, 3 insertions, 0 deletions
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
@@ -1205,6 +1205,9 @@ int
gf_d_type_from_ia_type(ia_type_t type);
int
+gf_syncfs(int fd);
+
+int
gf_nanosleep(uint64_t nsec);
#endif /* _COMMON_UTILS_H */