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 bdc32a1 commit 3c24020Copy full SHA for 3c24020
fs/bcachefs/subvolume.c
@@ -6,6 +6,7 @@
6
#include "errcode.h"
7
#include "error.h"
8
#include "fs.h"
9
+#include "recovery_passes.h"
10
#include "snapshot.h"
11
#include "subvolume.h"
12
@@ -44,8 +45,8 @@ static int check_subvol(struct btree_trans *trans,
44
45
ret = bch2_snapshot_lookup(trans, snapid, &snapshot);
46
47
if (bch2_err_matches(ret, ENOENT))
- bch_err(c, "subvolume %llu points to nonexistent snapshot %u",
48
- k.k->p.offset, snapid);
+ return bch2_run_explicit_recovery_pass(c,
49
+ BCH_RECOVERY_PASS_reconstruct_snapshots) ?: ret;
50
if (ret)
51
return ret;
52
0 commit comments