summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-04-17 17:01:40 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-04-17 19:00:38 -0400
commitb485aae1bac95e3b5be235116e2bc43da85906c5 (patch)
tree844734692f40b3e18bf35fbc9e3c3eb4a5610729 /cmd_debug.c
parentf652fdc9622ee513469f046bceea81ada7fa5b02 (diff)
Update bcachefs sources to 6f603b8d79 bcachefs: some improvements to startup messages and options
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 5da97daa..637da1c5 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -91,7 +91,7 @@ int cmd_dump(int argc, char *argv[])
int fd, opt;
opt_set(opts, nochanges, true);
- opt_set(opts, noreplay, true);
+ opt_set(opts, norecovery, true);
opt_set(opts, degraded, true);
opt_set(opts, errors, BCH_ON_ERROR_CONTINUE);
@@ -158,11 +158,12 @@ static void list_keys(struct bch_fs *c, enum btree_id btree_id,
struct btree_iter *iter;
struct bkey_s_c k;
char buf[512];
+ int ret;
bch2_trans_init(&trans, c);
for_each_btree_key(&trans, iter, btree_id, start,
- BTREE_ITER_PREFETCH, k) {
+ BTREE_ITER_PREFETCH, k, ret) {
if (bkey_cmp(k.k->p, end) > 0)
break;