Skip to content
  • Brian Foster's avatar
    fuse: update attributes on aio_read · a8894274
    Brian Foster authored
    A fuse-based network filesystem might allow for the inode
    and/or file data to change unexpectedly. A local client
    that opens and repeatedly reads a file might never pick
    up on such changes and indefinitely return stale data.
    Always invoke fuse_update_attributes() in the read path
    to cause an attr revalidation when the attributes expire.
    This leads to a page cache invalidation if necessary and
    ensures fuse issues new read requests to the fuse client.
    The original logic (reval only on reads beyond EOF) is
    preserved unless the client specifies FUSE_AUTO_INVAL_DATA
    on init.
    Signed-off-by: default avatarBrian Foster <>
    Signed-off-by: default avatarMiklos Szeredi <>