[Bug 271925] chflags(1) fails to remove uarch flag with hardlinked files (ZFS)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Oct 2025 16:52:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271925

--- Comment #7 from Stefan Eßer <se@FreeBSD.org> ---
There has been no progress, the issue still exists on 16-CURRENT.
I have just performed a test using the code from comment 5, and it toggles the
uarch flag on each invocation.
The patch attached to this PR fixes the issue, but causes one extra system call
per file that needs flags to be updated. A further optimization might be to
skip the system call for "p->fts_statp->st_nlink & 1 != 0".
I'll test this optimized version of the patch on my system and will update the
attachment if it works.

-- 
You are receiving this mail because:
You are the assignee for the bug.