summaryrefslogtreecommitdiffstats
path: root/src/basic/fs-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-01 17:12:12 +0100
committerLennart Poettering <lennart@poettering.net>2021-07-08 10:22:34 +0200
commit814a7e034516b8a917c7313d9800b45c9f5193df (patch)
treeb0ad892c1ca4f7359beb6e71d46dad3613c008aa /src/basic/fs-util.h
parentfs-util: make sure fsync_directory_of_file() does something useful on O_PATH fds (diff)
downloadsystemd-814a7e034516b8a917c7313d9800b45c9f5193df.tar.xz
systemd-814a7e034516b8a917c7313d9800b45c9f5193df.zip
fs-util: add API for fsync()ing parent dir of path
Diffstat (limited to 'src/basic/fs-util.h')
-rw-r--r--src/basic/fs-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
index 7f15b558ca..c4ab98dbb4 100644
--- a/src/basic/fs-util.h
+++ b/src/basic/fs-util.h
@@ -140,6 +140,7 @@ int unlinkat_deallocate(int fd, const char *name, UnlinkDeallocateFlags flags);
int fsync_directory_of_file(int fd);
int fsync_full(int fd);
int fsync_path_at(int at_fd, const char *path);
+int fsync_parent_at(int at_fd, const char *path);
int syncfs_path(int atfd, const char *path);