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

btrfs hack: shrink the allocated size #2076

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 5, 2024

  1. btrfs hack: shrink the allocated size

    We are using read-only btrfs compressed for the /usr partition,
    and sometimes the free space shown by `btrfs fi usage` and the `df` IS diverging,
    with `df` showing the free space from the `btrfs fi usage`'s `Device unallocated.
    
    I have found a way to fix the allocation, by decreasing the size to more than the btrfs
    filesystem allows, but curiosly the allocation is getting reset during the failed
    attempt and the issue is fixed.
    
    This is of course, a _HACK_, and can at any time produce unwanted behaviours.
    
    Note that the issue cannot be reliably reproduced.
    
    See Flatcar issue: flatcar/Flatcar#1473
    
    See issue upstream:
    https://bugzilla.kernel.org/show_bug.cgi?id=219167
    
    Signed-off-by: Adrian Vladu <[email protected]>
    ader1990 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    51d5509 View commit details
    Browse the repository at this point in the history