From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> If a remote symlink has a corrupted remote block, just zap the symlink. Fixes total lack of repair activity in xfs/382. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- repair/dinode.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repair/dinode.c b/repair/dinode.c index 9af4f05..ceffc52 100644 --- a/repair/dinode.c +++ b/repair/dinode.c @@ -1330,6 +1330,13 @@ _("cannot read inode %" PRIu64 ", file block %d, disk block %" PRIu64 "\n"), lino, i, fsbno); return 1; } + if (bp->b_error == -EFSCORRUPTED) { + do_warn( +_("Corrupt symlink remote, block %" PRIu64 ", inode %" PRIu64 ".\n"), + fsbno, lino); + libxfs_putbuf(bp); + return 1; + } if (bp->b_error == -EFSBADCRC) { do_warn( _("Bad symlink buffer CRC, block %" PRIu64 ", inode %" PRIu64 ".\n" -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html