linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* call trace when btrfs-check tries to write on ro-blockdev
@ 2022-09-21  2:29 Christoph Anton Mitterer
  2022-09-21  2:40 ` Qu Wenruo
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Anton Mitterer @ 2022-09-21  2:29 UTC (permalink / raw)
  To: linux-btrfs

Hey.

Not really a big problem but a but "ugly"...

When trying to do some write operation with btrfs check on a blockdev
that is set read-only, one gets a call trace like the following:


# btrfs check --clear-space-cache v1 /dev/mapper/data
Opening filesystem to check...
Checking filesystem on /dev/mapper/data-b-1
UUID: 18343f60-3955-11ed-a6c8-38afd7a81270
Error writing to device 1
kernel-shared/transaction.c:156: __commit_transaction: BUG_ON `ret`
triggered, value 1
btrfs(+0x3683b)[0x55c75780483b]
btrfs(__commit_transaction+0xc6)[0x55c757804b32]
btrfs(btrfs_commit_transaction+0x130)[0x55c757804ca0]
btrfs(+0x61963)[0x55c75782f963]
btrfs(+0x6e297)[0x55c75783c297]
btrfs(main+0x318)[0x55c7577e6138]
/lib/x86_64-linux-gnu/libc.so.6(+0x2920a)[0x7f6fd6ff920a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x7c)[0x7f6fd6ff92bc]
btrfs(_start+0x21)[0x55c7577e6171]
Aborted


Cheers,
Chris.

PS: That was with progs 5.19.

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

end of thread, other threads:[~2022-09-23 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21  2:29 call trace when btrfs-check tries to write on ro-blockdev Christoph Anton Mitterer
2022-09-21  2:40 ` Qu Wenruo
2022-09-21  3:43   ` Christoph Anton Mitterer
2022-09-23 10:39     ` Qu Wenruo
2022-09-23 18:53       ` Christoph Anton Mitterer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).