• Brian Foster's avatar
    fuse: invalidate inode mapping if mtime changes · eed2179e
    Brian Foster authored
    We currently invalidate the inode address space mapping
    if the file size changes unexpectedly. In the case of a
    fuse network filesystem, a portion of a file could be
    overwritten remotely without changing the file size.
    Compare the old mtime as well to detect this condition
    and invalidate the mapping if the file has been updated.
    
    The original logic (to ignore changes in mtime) is
    preserved unless the client specifies FUSE_AUTO_INVAL_DATA
    on init.
    Signed-off-by: default avatarBrian Foster <bfoster@redhat.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
    eed2179e
inode.c 28.8 KB