From 92c1851160c5142d4bd8f4d25c28322024fdf24b Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 12 Sep 2023 12:39:58 -0700 Subject: [PATCH] xfs_scrub: actually return errno from check_xattr_ns_names Actually return the error code when extended attribute checks fail. Signed-off-by: Darrick J. Wong Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- scrub/phase5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scrub/phase5.c b/scrub/phase5.c index 1ef234bff..314057096 100644 --- a/scrub/phase5.c +++ b/scrub/phase5.c @@ -202,6 +202,7 @@ check_xattr_ns_names( if (error) { if (errno == ESTALE) errno = 0; + error = errno; if (errno) str_errno(ctx, descr_render(dsc)); } -- 2.47.3