2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ovsdb: Factor out code to fsync a file's containing directory.

In an upcoming commit, another function wants to do the same thing, so
break it out into a helper function.
This commit is contained in:
Ben Pfaff
2010-02-11 15:35:46 -08:00
parent a3d573ed9b
commit 8e71cf88b7
3 changed files with 35 additions and 11 deletions

View File

@@ -42,4 +42,6 @@ int inet_open_passive(int style, const char *target, int default_port,
int read_fully(int fd, void *, size_t, size_t *bytes_read);
int write_fully(int fd, const void *, size_t, size_t *bytes_written);
int fsync_parent_dir(const char *file_name);
#endif /* socket-util.h */