diff options
Diffstat (limited to 'sys/fs/fuse/fuse_vnops.c')
| -rw-r--r-- | sys/fs/fuse/fuse_vnops.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c index 5c28db29fc63..6c79e646d2f3 100644 --- a/sys/fs/fuse/fuse_vnops.c +++ b/sys/fs/fuse/fuse_vnops.c @@ -284,7 +284,7 @@ fuse_flush(struct vnode *vp, struct ucred *cred, pid_t pid, int fflag)  	struct mount *mp = vnode_mount(vp);  	int err; -	if (fsess_not_impl(vnode_mount(vp), FUSE_FLUSH)) +	if (fsess_not_impl(mp, FUSE_FLUSH))  		return 0;  	err = fuse_filehandle_getrw(vp, fflag, &fufh, cred, pid); @@ -292,7 +292,7 @@ fuse_flush(struct vnode *vp, struct ucred *cred, pid_t pid, int fflag)  		return err;  	if (fufh->fuse_open_flags & FOPEN_NOFLUSH && -	    (!fsess_opt_writeback(vnode_mount(vp)))) +	    (!fsess_opt_writeback(mp)))  		return (0);  	fdisp_init(&fdi, sizeof(*ffi)); @@ -2756,7 +2756,7 @@ fuse_vnop_setextattr(struct vop_setextattr_args *ap)  		 */  		if (fsess_not_impl(mp, FUSE_REMOVEXATTR))  			return (EXTERROR(EOPNOTSUPP, "This server does not " -			    "implement removing extended attributess")); +			    "implement removing extended attributes"));  		else  			return (EXTERROR(EINVAL, "DELETEEXTATTR should be used "  			    "to remove extattrs")); @@ -2777,7 +2777,7 @@ fuse_vnop_setextattr(struct vop_setextattr_args *ap)  	    strlen(ap->a_name) + 1;  	/* older FUSE servers  use a smaller fuse_setxattr_in struct*/ -	if (fuse_libabi_geq(fuse_get_mpdata(mp), 7, 33)) +	if (fuse_get_mpdata(mp)->dataflags & FSESS_SETXATTR_EXT)  		struct_size = sizeof(*set_xattr_in);  	fdisp_init(&fdi, len + struct_size + uio->uio_resid); @@ -2786,7 +2786,7 @@ fuse_vnop_setextattr(struct vop_setextattr_args *ap)  	set_xattr_in = fdi.indata;  	set_xattr_in->size = uio->uio_resid; -	if (fuse_libabi_geq(fuse_get_mpdata(mp), 7, 33)) { +	if (fuse_get_mpdata(mp)->dataflags & FSESS_SETXATTR_EXT) {  		set_xattr_in->setxattr_flags = 0;  		set_xattr_in->padding = 0;  	}  | 
