Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161703807
D25404.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
532 B
Referenced Files
None
Subscribers
None
D25404.id.diff
View Options
Index: sys/ufs/ffs/ffs_vnops.c
===================================================================
--- sys/ufs/ffs/ffs_vnops.c
+++ sys/ufs/ffs/ffs_vnops.c
@@ -914,7 +914,8 @@
uio->uio_offset -= resid - uio->uio_resid;
uio->uio_resid = resid;
}
- } else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) {
+ } else if ((ioflag & IO_SYNC) != 0 && (resid > uio->uio_resid ||
+ (ip->i_flags & IN_IBLKDATA) != 0)) {
error = ffs_update(vp, 1);
if (ffs_fsfail_cleanup(VFSTOUFS(vp->v_mount), error))
error = ENXIO;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 7, 2:42 AM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34779092
Default Alt Text
D25404.id.diff (532 B)
Attached To
Mode
D25404: ufs: a fix for sync write
Attached
Detach File
Event Timeline
Log In to Comment