]> git.sesse.net Git - bcachefs-tools-debian/commit
cmd_dump: Also set read_only
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 11 Aug 2023 22:17:07 +0000 (18:17 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 11 Aug 2023 22:32:23 +0000 (18:32 -0400)
commitbcee0320dcb53adb3786330a00a101840f2939d0
treec9450f842d5a5a76764f9ecbd01dc2608a227095
parentae23e4541f020f3096ede3ac62ba6ab9cd37af3b
cmd_dump: Also set read_only

In nochanges mode, without read_only, we can go into a fake rw mode
where we allow writes but hold them in memory.

That's not what we want for the dump tool - this fixes a bug where btree
nodes don't always get dumped correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
cmd_dump.c