]> git.sesse.net Git - bcachefs-tools-debian/commit
bcachefs-tools: don't skip stale superblock wipe in force mode
authorBrian Foster <bfoster@redhat.com>
Mon, 27 Nov 2023 18:31:10 +0000 (13:31 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 Nov 2023 02:04:03 +0000 (21:04 -0500)
commit1cdb7812d177bfa8d88c23396434195f3a7ced47
tree2bb3f9411fe190c7361a0dfc3ef55d41e1750f48
parent843707ede687387c91d736c601d3ddee91e9f893
bcachefs-tools: don't skip stale superblock wipe in force mode

Even though the blkid wipe has been fixed to detect and wipe old
superblocks, we still incorrectly skip the wipe when in force mode.
Update the force logic in open_for_format() to bypass the user
request and otherwise proceed with the wipe.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
tools-util.c