public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Balance + Ctrl-C = forced readonly
@ 2020-07-05 12:49 Hans van Kranenburg
  2020-07-05 13:13 ` Qu Wenruo
  0 siblings, 1 reply; 5+ messages in thread
From: Hans van Kranenburg @ 2020-07-05 12:49 UTC (permalink / raw)
  To: linux-btrfs

Hi,

This is Linux kernel 5.7.6 (the Debian package, 5.7.6-1).

So, I wanted to try out this new quicker balance interrupt thing, and
the result was that I could crash the fs at my very first try using it,
which was simply doing balance, and then pressing Ctrl-C.

Recipe to reproduce: Start balance, wait a few seconds, then press
Ctrl-C. For me here, ~ 5 out of 10 times, it ends up exploding:

-# btrfs balance start --full /btrfs/
^C

[41190.572977] BTRFS info (device xvdb): balance: start -d -m -s
[41190.573035] BTRFS info (device xvdb): relocating block group
73001861120 flags metadata
[41205.409600] BTRFS info (device xvdb): found 12236 extents, stage:
move data extents
[41205.509316] BTRFS info (device xvdb): relocating block group
71928119296 flags data
[41205.695319] BTRFS info (device xvdb): found 3 extents, stage: move
data extents
[41205.723009] BTRFS info (device xvdb): found 3 extents, stage: update
data pointers
[41205.750590] BTRFS info (device xvdb): relocating block group
60922265600 flags metadata
[41208.183424] BTRFS: error (device xvdb) in btrfs_drop_snapshot:5505:
errno=-4 unknown
[41208.183450] BTRFS info (device xvdb): forced readonly
[41208.183469] BTRFS info (device xvdb): balance: ended with status: -4

Boom, readonly FS.

Hans

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-06  7:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-05 12:49 Balance + Ctrl-C = forced readonly Hans van Kranenburg
2020-07-05 13:13 ` Qu Wenruo
2020-07-05 14:53   ` Hans van Kranenburg
2020-07-06  6:15     ` Qu Wenruo
2020-07-06  7:48       ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox