FreeBSD Bugzilla – Attachment 164744 Details for
Bug 194293
FUSE program freezes when seeking pos > file size
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch fuse so that a WRONLY open becomes a RDWR open
fuse-rwopen.patch (text/plain), 1.30 KB, created by
rmacklem
on 2015-12-28 01:51:22 UTC
(
hide
)
Description:
patch fuse so that a WRONLY open becomes a RDWR open
Filename:
MIME Type:
Creator:
rmacklem
Created:
2015-12-28 01:51:22 UTC
Size:
1.30 KB
patch
obsolete
>--- fs/fuse/fuse_file.h.xxx 2015-12-27 16:02:53.241174000 -0500 >+++ fs/fuse/fuse_file.h 2015-12-27 15:25:01.865156000 -0500 >@@ -101,6 +101,9 @@ fuse_filehandle_xlate_from_fflags(int ff > if ((fflags & FREAD) && (fflags & FWRITE)) { > return FUFH_RDWR; > } else if (fflags & (FWRITE)) { >+ /* See comment in fuse_vnop_open() w.r.t. why FUFH_RDWR is needed. */ >+ if (datacache != 0) >+ return FUFH_RDWR; > return FUFH_WRONLY; > } else if (fflags & (FREAD)) { > return FUFH_RDONLY; >--- fs/fuse/fuse_vnops.c.sav 2015-12-16 16:24:43.577000000 -0500 >+++ fs/fuse/fuse_vnops.c 2015-12-27 16:07:06.683806000 -0500 >@@ -276,7 +276,8 @@ fuse_vnop_close(struct vop_close_args *a > if (fflag & IO_NDELAY) { > return 0; > } >- fufh_type = fuse_filehandle_xlate_from_fflags(fflag); >+ fufh_type = fuse_filehandle_xlate_from_fflags(fflag, >+ fsess_opt_datacache(vnode_mount(vp))); > > if (!fuse_filehandle_valid(vp, fufh_type)) { > int i; >@@ -1139,7 +1140,8 @@ fuse_vnop_open(struct vop_open_args *ap) > if (isdir) { > fufh_type = FUFH_RDONLY; > } else { >- fufh_type = fuse_filehandle_xlate_from_fflags(mode); >+ fufh_type = fuse_filehandle_xlate_from_fflags(mode, >+ fsess_opt_datacache(vnode_mount(vp))); > } > > if (fuse_filehandle_valid(vp, fufh_type)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194293
:
148181
|
164744
|
164831
|
164881