[Git][reproducible-builds/disorderfs][master] Ignore the return values to fsyncdir to ensure (for example) dpkg(1) can "flush" /var/lib/dpkg.
Chris Lamb
gitlab at salsa.debian.org
Sun Jan 27 23:53:26 CET 2019
Chris Lamb pushed to branch master at Reproducible Builds / disorderfs
Commits:
bd35aeb6 by Chris Lamb at 2019-01-27T21:48:54Z
Ignore the return values to fsyncdir to ensure (for example) dpkg(1) can "flush" /var/lib/dpkg.
- - - - -
1 changed file:
- disorderfs.cpp
Changes:
=====================================
disorderfs.cpp
=====================================
@@ -477,7 +477,8 @@ int main (int argc, char** argv)
};
disorderfs_fuse_operations.fsyncdir = [] (const char* path, int is_datasync, struct fuse_file_info* info) -> int {
// XXX: is it OK to just use fsync? Not clear on why FUSE has a separate fsyncdir operation
- return wrap(is_datasync ? fdatasync(info->fh) : fsync(info->fh));
+ wrap(is_datasync ? fdatasync(info->fh) : fsync(info->fh));
+ return 0; // return value is ignored
};
disorderfs_fuse_operations.create = [] (const char* path, mode_t mode, struct fuse_file_info* info) -> int {
Guard g;
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/commit/bd35aeb6e9dd53fb00e1cfd0923ac191fa1e082d
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/commit/bd35aeb6e9dd53fb00e1cfd0923ac191fa1e082d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190127/c126a352/attachment.html>
More information about the rb-commits
mailing list