Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2024 13:18:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 276918] "zpool status -t": output is inconsistent
Message-ID:  <bug-276918-3630-lQh3NQ7cpC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276918-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276918-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276918

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 =3D ps->pss_end_time;
=E2=80=A6
> (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);
=E2=80=A6
> (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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276918-3630-lQh3NQ7cpC>