fusefs: remove the vfs.fusefs.sync_resize syctl, correctly this time

In r347547 I intended to remove the vfs.fusefs.sync_resize sysctl, leaving
fusefs's behavior as though sync_resize had its default value.  But I forgot
that I had already turned off sync_resize in my development system's
/etc/sysctl.conf.

This commit complete removes the optional behavior that was formerly
controlled by sync_resize.  There's no need for explicitly calling
FUSE_SETATTR after every FUSE_WRITE that extends a file.  The daemon can
infer that the file is being extended.  If this sysctl was added as a
workaround for a buggy daemon, there's no clue as to what that daemon may
have been.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Alan Somers 2019-05-22 19:49:25 +00:00
parent a6fac00c53
commit b6b7fe7c7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=348119

View File

@ -528,7 +528,6 @@ static int
fuse_write_biobackend(struct vnode *vp, struct uio *uio,
struct ucred *cred, struct fuse_filehandle *fufh, int ioflag, pid_t pid)
{
struct fuse_vnode_data *fvdat = VTOFUD(vp);
struct buf *bp;
daddr_t lbn;
off_t filesize;
@ -750,9 +749,6 @@ fuse_write_biobackend(struct vnode *vp, struct uio *uio,
break;
} while (uio->uio_resid > 0 && n > 0);
if ((fvdat->flag & FN_SIZECHANGE) != 0)
fuse_vnode_savesize(vp, cred, pid);
return (err);
}