svn commit: r272615 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Alexander Motin
mav at FreeBSD.org
Mon Oct 6 12:31:52 UTC 2014
Author: mav
Date: Mon Oct 6 12:31:51 2014
New Revision: 272615
URL: https://svnweb.freebsd.org/changeset/base/272615
Log:
MFC r271308:
Make ZVOL writes in device mode support IO_SYNC flag.
Modified:
stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Mon Oct 6 12:29:06 2014 (r272614)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Mon Oct 6 12:31:51 2014 (r272615)
@@ -1634,7 +1634,7 @@ zvol_write(struct cdev *dev, struct uio
#ifdef sun
sync = !(zv->zv_flags & ZVOL_WCE) ||
#else
- sync =
+ sync = (ioflag & IO_SYNC) ||
#endif
(zv->zv_objset->os_sync == ZFS_SYNC_ALWAYS);
More information about the svn-src-stable
mailing list