[PATCH 4/6] xfs_scrub: actually return errno from check_xattr_ns_names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Darrick J. Wong <djwong@xxxxxxxxxx>

Actually return the error code when extended attribute checks fail.

Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
 scrub/phase5.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scrub/phase5.c b/scrub/phase5.c
index 1ef234bff68..31405709657 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));

[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]

  Powered by Linux