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

Collapse All | Expand All

(-)fs/fuse/fuse_vnops.c (-1 / +2 lines)
Lines 1158-1164 fuse_vnop_open(struct vop_open_args *ap) Link Here
1158
		fufh_type = FUFH_RDONLY;
1158
		fufh_type = FUFH_RDONLY;
1159
	} else {
1159
	} else {
1160
		fufh_type = fuse_filehandle_xlate_from_fflags(mode);
1160
		fufh_type = fuse_filehandle_xlate_from_fflags(mode);
1161
		if (fufh_type == FUFH_WRONLY)
1161
		if (fufh_type == FUFH_WRONLY ||
1162
		    (fvdat->flag & FN_DIRECTIO) != 0)
1162
			fuse_open_flags = FOPEN_DIRECT_IO;
1163
			fuse_open_flags = FOPEN_DIRECT_IO;
1163
	}
1164
	}
1164
1165

Return to bug 206238