View | Details | Raw Unified | Return to bug 195061 | Differences between
and this patch

Collapse All | Expand All

(-)sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c (-3 / +8 lines)
Lines 171-181 vdev_file_io_start(zio_t *zio) Link Here
171
	vf = vd->vdev_tsd;
171
	vf = vd->vdev_tsd;
172
	vp = vf->vf_vnode;
172
	vp = vf->vf_vnode;
173
173
174
	if (zio->io_type == ZIO_TYPE_IOCTL) {
174
	switch (zio->io_type) {
175
	case ZIO_TYPE_IOCTL:
175
		switch (zio->io_cmd) {
176
		switch (zio->io_cmd) {
176
		case DKIOCFLUSHWRITECACHE:
177
		case DKIOCFLUSHWRITECACHE:
177
			zio->io_error = VOP_FSYNC(vp, FSYNC | FDSYNC,
178
			zio->io_error = VOP_FSYNC(vp, FSYNC | FDSYNC, kcred,
178
			    kcred, NULL);
179
			    NULL);
179
			break;
180
			break;
180
		default:
181
		default:
181
			zio->io_error = SET_ERROR(ENOTSUP);
182
			zio->io_error = SET_ERROR(ENOTSUP);
Lines 183-188 vdev_file_io_start(zio_t *zio) Link Here
183
184
184
		zio_execute(zio);
185
		zio_execute(zio);
185
		return;
186
		return;
187
        case ZIO_TYPE_FREE:
188
		zio->io_error = SET_ERROR(ENOTSUP);
189
		zio_execute(zio);
190
		return;
186
	}
191
	}
187
192
188
	zio->io_error = vn_rdwr(zio->io_type == ZIO_TYPE_READ ?
193
	zio->io_error = vn_rdwr(zio->io_type == ZIO_TYPE_READ ?

Return to bug 195061