Skip to content

Commit

Permalink
fusefs: invalidate cached file size when truncating
Browse files Browse the repository at this point in the history
  • Loading branch information
etsal committed Feb 7, 2024
1 parent 82bebc7 commit 50ea6f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/fs/fuse/fuse_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,8 @@ int fuse_internal_setattr(struct vnode *vp, struct vattr *vap,
fsai->valid |= FATTR_FH;
}
VTOFUD(vp)->flag &= ~FN_SIZECHANGE;

fvdat->cached_attrs.va_size = VNOVAL;
}
if (vap->va_atime.tv_sec != VNOVAL) {
fsai->atime = vap->va_atime.tv_sec;
Expand Down

0 comments on commit 50ea6f8

Please sign in to comment.