From: Carlos Maiolino Date: Tue, 7 Apr 2026 11:15:00 +0000 (+0200) Subject: fsr: always print error messages from xfrog_defragrange() X-Git-Tag: v7.0.0~58 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a799c98743c9ad15e147ab94f464cc82de0a177d;p=xfsprogs-dev.git fsr: always print error messages from xfrog_defragrange() Error messages from xfrog_defragrange() are only printed when verbose/debug flags are used. We had reports from users complaining it's hard to find out the error messages lost in the middle of dozens of other informational messages. Change packfile() behavior to print errors independently of verbose or debug flags. Signed-off-by: Carlos Maiolino Reviewed-by: "Darrick J. Wong" --- diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index 390f7c52..e74180c1 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -1464,19 +1464,15 @@ packfile( case 0: break; case ENOTSUP: - if (vflag || dflag) - fsrprintf(_("%s: file type not supported\n"), fname); + fsrprintf(_("%s: file type not supported\n"), fname); break; case EFAULT: /* The file has changed since we started the copy */ - if (vflag || dflag) - fsrprintf(_("%s: file modified defrag aborted\n"), - fname); + fsrprintf(_("%s: file modified defrag aborted\n"), fname); break; case EBUSY: /* Timestamp has changed or mmap'ed file */ - if (vflag || dflag) - fsrprintf(_("%s: file busy\n"), fname); + fsrprintf(_("%s: file busy\n"), fname); break; default: fsrprintf(_("XFS_IOC_SWAPEXT failed: %s: %s\n"),