[Bug 276918] "zpool status -t": output is inconsistent
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Feb 2024 13:18:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276918
Vladimir Druzenko <vvd@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vvd@FreeBSD.org
--- Comment #1 from Vladimir Druzenko <vvd@FreeBSD.org> ---
1st part:
src/sys/contrib/openzfs/cmd/zpool/zpool_main.c
(print_scan_scrub_resilver_status):
> end = ps->pss_end_time;
…
> (void) printf(gettext("scrub repaired %s "
> "in %s with %llu errors on %s"), processed_buf,
> time_buf, (u_longlong_t)ps->pss_errors,
> ctime(&end));
2nd part:
src/sys/contrib/openzfs/cmd/zpool/zpool_main.c (print_status_trim):
> (void) localtime_r(&t, &zaction_ts);
> (void) strftime(tbuf, sizeof (tbuf), "%c", &zaction_ts);
…
> (void) snprintf(zbuf, sizeof (zbuf), ", %s %s",
> gettext("completed at"), tbuf);
I think localtime_r + strftime do this.
IMHO, it's better to ask OpenZFS upstream to change this behavior.
--
You are receiving this mail because:
You are the assignee for the bug.