If a media error occurs for some disk space that has a "special" owner,
we mustn't try to walk parent pointers because special owners are not
files. If it's an extent map, we shouldn't accidentally fall into
reporting that as file data loss. This was, like the rest, found by
Codex.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
} else {
str_corrupt(ctx, buf, _("media error in %s."), type);
}
+
+ return 0;
}
if (can_use_pptrs(ctx)) {
attr ? _("extended attribute") :
_("file data"));
str_corrupt(ctx, buf, _("media error in extent map"));
+
+ return 0;
}
/*