int syncfs(int fd);
syncfs(2) is like sync(2), but synchronizes just the filesystem containing file referred to by the open file descriptor fd.
syncfs(2)
sync(2)