Commit e92e5056 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Failed devices no longer require mounting in degraded mode

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 805ddc20
...@@ -800,7 +800,7 @@ bool bch2_have_enough_devs(struct bch_fs *c, struct bch_devs_mask devs, ...@@ -800,7 +800,7 @@ bool bch2_have_enough_devs(struct bch_fs *c, struct bch_devs_mask devs,
} }
rcu_read_unlock(); rcu_read_unlock();
if (nr_failed == e->nr_devs) if (nr_online + nr_failed == e->nr_devs)
continue; continue;
if (nr_online < e->nr_required) if (nr_online < e->nr_required)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment