[Bug 292074] periodic daily 801.trim-zfs uses wrong variable name: daily_zfs_trim_flags instead of daily_trim_zfs_flags

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 Jan 2026 08:40:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292074

--- Comment #1 from CrazyMihey <CrazyMihey@Ya.Ru> ---
Sorry, the Corrected «Hot-Fixed» Code for «/etc/periodic.conf»,
«/etc/periodic.conf.local», «/usr/local/etc/periodic.conf» WithOut Extra-Quotes
looks like:
if kldstat -q -m "zfs" 2>"/dev/null" && zpool status -P -t | egrep
"[/][Dd][Ee][Vv][/]" | egrep --invert-match --quiet
"[(][[:space:]]*[Tt][Rr][Ii][Mm][[:space:]]+[Uu][Nn][Ss][Uu][Pp][Pp][Oo][Rr][Tt][Ee][Dd][[:space:]]*[)]"
 then   # The System contains Devices that SupPort Trim Operations.
  daily_trim_zfs_enable="Yes"
 
daily_trim_zfs_flags="${daily_trim_zfs_flags%[[:space:]]}${daily_trim_zfs_flags:+"
"}--rate $(( 20 << 20 ))"  # Maximum Trim Rate 20 MB/S. ReasonAble Performance
Penalty for Most HDDs & SSDs.
 
daily_zfs_trim_flags="${daily_zfs_trim_flags%[[:space:]]}${daily_zfs_trim_flags:+"
"}--rate $(( 20 << 20 ))"  # Due to the Error in
«/etc/periodic/daily/801.trim-zfs»…
fi

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