* [PATCH] reiser4progs: Grab pset after skipping the semantic pass by fsck
@ 2015-08-25 15:50 Edward Shishkin
0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2015-08-25 15:50 UTC (permalink / raw)
To: Reiserfs development mailing list
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: reiser4progs-grab-pset-after-skipping-semantic-path.patch --]
[-- Type: text/x-patch, Size: 847 bytes --]
Init global pset in the case when semantic pass is skipped
because of fatal corruptions. Otherwise fsck segfaults on
volumes of format versions 4.0.1 when reopening a backup
at fsck_check_fini().
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
librepair/repair.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--- a/librepair/repair.c
+++ b/librepair/repair.c
@@ -786,8 +786,14 @@ errno_t repair_check(repair_data_t *repa
if (repair->fatal) {
aal_warn("Fatal corruptions were found. "
"Semantic pass is skipped.");
+ /*
+ * We need to prepare pset for backup
+ * creation in fsck_check_fini().
+ */
+ if (res = reiser4_pset_tree(control.repair->fs->tree, 0))
+ goto error;
goto update;
- }
+ }
/* Check the semantic reiser4 tree. */
if ((res = repair_sem_prepare(&control, &sem)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-25 15:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 15:50 [PATCH] reiser4progs: Grab pset after skipping the semantic pass by fsck Edward Shishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).