Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137810567
D5186.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
581 B
Referenced Files
None
Subscribers
None
D5186.diff
View Options
Index: head/lib/libc/db/hash/hash.c
===================================================================
--- head/lib/libc/db/hash/hash.c
+++ head/lib/libc/db/hash/hash.c
@@ -422,8 +422,10 @@
if (hashp->tmp_buf)
free(hashp->tmp_buf);
- if (hashp->fp != -1)
+ if (hashp->fp != -1) {
+ (void)_fsync(hashp->fp);
(void)_close(hashp->fp);
+ }
free(hashp);
@@ -458,6 +460,8 @@
return (0);
if (__buf_free(hashp, 0, 1) || flush_meta(hashp))
return (ERROR);
+ if (hashp->fp != -1 && _fsync(hashp->fp) != 0)
+ return (ERROR);
hashp->new_file = 0;
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 27, 1:01 AM (4 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26237529
Default Alt Text
D5186.diff (581 B)
Attached To
Mode
D5186: pwd_mkdb opens files with O_SYNC instead of calling fsync
Attached
Detach File
Event Timeline
Log In to Comment