Commit 0d2d35a3 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: report unrecognized log item type codes during recovery

When we're sorting recovered log items ahead of recovering them and
encounter a log item of unknown type, actually print the type code when
we're rejecting the whole transaction to aid in debugging.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 0e698dfa
......@@ -1887,8 +1887,8 @@ xlog_recover_reorder_trans(
break;
default:
xfs_warn(log->l_mp,
"%s: unrecognized type of log operation",
__func__);
"%s: unrecognized type of log operation (%d)",
__func__, ITEM_TYPE(item));
ASSERT(0);
/*
* return the remaining items back to the transaction
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment