On Mon, Feb 10, 2025 at 2:37 PM Zorro Lang <zlang@xxxxxxxxxx> wrote: > > On Thu, Feb 06, 2025 at 07:55:01AM -0800, Darrick J. Wong wrote: > > On Thu, Feb 06, 2025 at 06:11:11AM -0800, Christoph Hellwig wrote: > > > On Thu, Feb 06, 2025 at 01:05:06PM +0000, fdmanana@xxxxxxxxxx wrote: > > > > +if [ "$FSTYP" = "xfs" ]; then > > > > + _fixed_by_kernel_commit 68415b349f3f \ > > > > + "xfs: Fix the owner setting issue for rmap query in xfs fsmap" > > > > + _fixed_by_kernel_commit ca6448aed4f1 \ > > > > + "xfs: Fix missing interval for missing_owner in xfs fsmap" > > > > +fi > > > > > > How about you add a new helper instead of the boilerplate, something > > > like > > > > > > _fixed_by_fs_kernel_commit xfs 68415b349f3f \ > > > "xfs: Fix the owner setting issue for rmap query in xfs fsmap" > > This looks good to me ^^ > > > > > While we're at it, we should move these _fixed_by* functions to a > > separate file to declutter common/rc? > > > > And maybe add a few more dumb wrappers like > > > > _fixed_by_xfsprogs_commit() > > { > > test "$FSTYP" = "xfs" && \ > > __fixed_by_git_commit xfsprogs "$@" > > Yes, this makes sense to me. > > Hi Filipe, I can review and merge this patch at first, if you'd like to > do above changes in another patch. Or I'll ignore this one, and wait your > next patchset. What's your plan? You may review and merge if it's ok for you. As for the refactoring, it will take a while, I would likely have to go over hundreds of generic tests, which I can't afford right now. Thanks. > > Thanks, > Zorro > > > } > > > > to replace the opencoded versions? > > > > --D > > > > > ? > > > > > >