View | Details | Raw Unified | Return to bug 16163
Collapse All | Expand All

(-)vfs_aio.c (-1 / +9 lines)
Lines 944-951 Link Here
944
944
945
	vp = (struct vnode *)fp->f_data;
945
	vp = (struct vnode *)fp->f_data;
946
946
947
	/*
948
	 * If its not a disk, we don't want to return a positive error.
949
	 * It causes the aio code to not fall through to try the thread
950
	 * way when you're talking to a regular file.
951
	 */
947
	if (!vn_isdisk(vp, &error))
952
	if (!vn_isdisk(vp, &error))
948
		return (error);
953
		if (error == ENOTBLK)
954
			return -1;
955
		else
956
			return (error);
949
957
950
 	if (cb->aio_nbytes % vp->v_rdev->si_bsize_phys)
958
 	if (cb->aio_nbytes % vp->v_rdev->si_bsize_phys)
951
		return (-1);
959
		return (-1);

Return to bug 16163