We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1b8dc commit f12410bCopy full SHA for f12410b
fs/bcachefs/journal_reclaim.c
@@ -205,6 +205,17 @@ void bch2_journal_space_available(struct journal *j)
205
j->can_discard = can_discard;
206
207
if (nr_online < metadata_replicas_required(c)) {
208
+ struct printbuf buf = PRINTBUF;
209
+ prt_printf(&buf, "insufficient writeable journal devices available: have %u, need %u\n"
210
+ "rw journal devs:", nr_online, metadata_replicas_required(c));
211
+
212
+ rcu_read_lock();
213
+ for_each_member_device_rcu(c, ca, &c->rw_devs[BCH_DATA_journal])
214
+ prt_printf(&buf, " %s", ca->name);
215
+ rcu_read_unlock();
216
217
+ bch_err(c, "%s", buf.buf);
218
+ printbuf_exit(&buf);
219
ret = JOURNAL_ERR_insufficient_devices;
220
goto out;
221
}
0 commit comments