Skip to content

btrfs check --force --repair works on a mounted fs, resulting in corruption #503

Open
@cmurf

Description

@cmurf

btrfs-progs 5.18.1, not sure when the regression occurred

  1. mount a btrfs file system
  2. btrfs check --force --repair on it
  3. umount it then mount it and try btrfs check --readonly

Actual results: busted fs

Expected results: should refuse to run and warn

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcheckChanges in btrfs checkdocsChanges in documentation or help text

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions