Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
e2fsprogs
libext2fs-Fix-fsync-2-detection.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libext2fs-Fix-fsync-2-detection.patch of Package e2fsprogs
From: Jan Kara <jack@suse.cz> Date: Wed, 31 May 2017 14:49:18 +0200 Subject: [PATCH] libext2fs: Fix fsync(2) detection References: bsc#1038194 For some reason lib/config.h.in was missing a definition of HAVE_FSYNC and as a result lib/config.h never had HAVE_FSYNC defined. As a result we never called fsync(2) for example from lib/ext2fs/unix_io.c:unix_flush() when we finished creating filesystem and could miss IO errors happening during creating of the filesystem. Test generic/405 exposes this problem. Fix the problem by defining HAVE_FSYNC in lib/config.h.in. Signed-off-by: Jan Kara <jack@suse.cz> --- lib/config.h.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/config.h.in b/lib/config.h.in index 37d0c461338a..91e869e7d3d7 100644 --- a/lib/config.h.in +++ b/lib/config.h.in @@ -470,6 +470,9 @@ /* Define to 1 if you have the `sync_file_range' function. */ #undef HAVE_SYNC_FILE_RANGE +/* Define to 1 if you have the 'fsync' function. */ +#undef HAVE_FSYNC + /* Define to 1 if you have the `sysconf' function. */ #undef HAVE_SYSCONF -- 2.12.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor