diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-11 15:35:46 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-15 11:31:34 -0800 |
commit | 8e71cf88b78eb704d452b1a4abf8014de340438e (patch) | |
tree | 9c37e23f9dadda7c58d2df5dcb75f2ae14bdb10b /lib/socket-util.h | |
parent | a3d573ed9b510289254b29cd3a62ed51e14c5b98 (diff) |
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.
Diffstat (limited to 'lib/socket-util.h')
-rw-r--r-- | lib/socket-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/socket-util.h b/lib/socket-util.h index 11f21c2d..e4899265 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -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 */ |