Skip to content

Only the first 'df' call works properly if cache_statfs_timeout enabled #127

@romanrm

Description

@romanrm

Hello,

If I set cache_statfs_timeout=86400, I get the following behavior (right after mounting):

$ df /mnt/hubic/
Filesystem 1K-blocks Used Available Use% Mounted on
hubicfuse 10737418240 6310055300 4427362940 59% /mnt/hubic

$ df /mnt/hubic/
Filesystem 1K-blocks Used Available Use% Mounted on
hubicfuse 0 0 0 - /mnt/hubic

$ df /mnt/hubic/
Filesystem 1K-blocks Used Available Use% Mounted on
hubicfuse 0 0 0 - /mnt/hubic

(etc)

If I comment out the cache_statfs_timeout setting, then each df call works properly (and as expected takes about 0.5-1 second to execute).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions