Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161466781
D25160.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
497 B
Referenced Files
None
Subscribers
None
D25160.id.diff
View Options
Index: sys/ufs/ffs/ffs_vnops.c
===================================================================
--- sys/ufs/ffs/ffs_vnops.c
+++ sys/ufs/ffs/ffs_vnops.c
@@ -1001,7 +1001,9 @@
uio->uio_resid = resid;
}
} else if (resid > uio->uio_resid && (ioflag & IO_SYNC)) {
- error = ffs_update(vp, 1);
+ if (!(ioflag & IO_DATASYNC) ||
+ (ip->i_flags & (IN_SIZEMOD | IN_IBLKDATA)))
+ 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
Sun, Jul 5, 2:14 AM (22 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34686871
Default Alt Text
D25160.id.diff (497 B)
Attached To
Mode
D25160: ufs: add O_DSYNC support
Attached
Detach File
Event Timeline
Log In to Comment