Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: Reimplement btrfs polling with benefits #20893

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 9, 2024

  1. storage: More precise ignoring of "other mounts"

    We used to ignore all other mounts when the first one is for the root
    filesystem. But filesystems can have more than one mount and we should
    look at each one individually.
    
    This also prepares the code for more cases.
    mvollmer committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    cfd08d5 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. storage: Reimplement btrfs polling with benefits

    The subvolume polling is now done by a long-running monitor program
    that only reports changes back to Cockpit. This reduces traffic in
    general and allows us to do additional clever things.
    
    The monitor program can optionally keep all btrfs filesystems mounted
    in a "secret" location, so that we can list the subvolumes of all
    btrfs filesystems, even those that are not officially mounted
    otherwise.
    
    This mode is only enabled in Anaconda mode: It is important there
    since filesystems are normally not mounted when preparing storage for
    Anaconda, and outside of Anaconda mode, keeping long standing secret
    mounts is deemed to invasive.
    
    The program can also carry out btrfs operations (such as creating
    subvolumes) while temporarily mounting it. This allows Cockpit to
    always create and delete subvolumes. The UI still only does it when
    monitoring subvolumes works as well, however.
    mvollmer committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    4fba463 View commit details
    Browse the repository at this point in the history