summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-05-08 02:28:15 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-05-08 06:57:17 -0800
commit63065c01285601afbe2457e92729efc11581e37d (patch)
tree8e37af7dcd60f0a260536064f4c6ec0c5dc24a06 /cmd_debug.c
parente57a624feb82e6d1bb8bd77c0f185939b1367b19 (diff)
Update bcachefs sources to 9ceb982d77 bcachefs: Store bucket gens in a btree
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 974e862..d4613ec 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -55,12 +55,6 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd)
bucket_bytes(ca));
}
- /* Prios/gens: */
- for (i = 0; i < prio_buckets(ca); i++)
- range_add(&data,
- bucket_bytes(ca) * ca->prio_last_buckets[i],
- bucket_bytes(ca));
-
/* Btree: */
for (i = 0; i < BTREE_ID_NR; i++) {
const struct bch_extent_ptr *ptr;
@@ -97,6 +91,7 @@ int cmd_dump(int argc, char *argv[])
opts.nochanges = true;
opts.noreplay = true;
opts.errors = BCH_ON_ERROR_CONTINUE;
+ opts.degraded = true;
while ((opt = getopt(argc, argv, "o:fh")) != -1)
switch (opt) {
@@ -273,6 +268,7 @@ int cmd_list(int argc, char *argv[])
opts.nochanges = true;
opts.norecovery = true;
opts.errors = BCH_ON_ERROR_CONTINUE;
+ opts.degraded = true;
while ((opt = getopt(argc, argv, "b:s:e:i:m:fvh")) != -1)
switch (opt) {