HomeFreeBSD

FUSE: Only "dirty" cached file size when data is dirty

Description

FUSE: Only "dirty" cached file size when data is dirty

Most users of fuse_vnode_setsize() set the cached fvdat->filesize and update
the buf cache bounds as a result of either a read from the underlying FUSE
filesystem, or as part of a write-through type operation (like truncate =>
VOP_SETATTR). In these cases, do not set the FN_SIZECHANGE flag, which
indicates that an inode's data is dirty (in particular, that the local buf
cache and fvdat->filesize have dirty extended data).

PR: 230258 (related)

Details

Provenance
cemAuthored on
Parents
rS344184: FUSE: Respect userspace FS "do-not-cache" of path components
Branches
Unknown
Tags
Unknown