From bcee0320dcb53adb3786330a00a101840f2939d0 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 11 Aug 2023 18:17:07 -0400 Subject: [PATCH] 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 --- cmd_dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd_dump.c b/cmd_dump.c index e1f0a5aa..bf570dc6 100644 --- a/cmd_dump.c +++ b/cmd_dump.c @@ -122,6 +122,7 @@ int cmd_dump(int argc, char *argv[]) bool force = false, entire_journal = true; int fd, opt; + opt_set(opts, read_only, true); opt_set(opts, nochanges, true); opt_set(opts, norecovery, true); opt_set(opts, degraded, true);