Whamcloud - gitweb
LU-9019 zfs: use 64-bit timestamps for brw stats 11/25411/7
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 1 Mar 2017 15:35:49 +0000 (10:35 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Mar 2017 02:58:08 +0000 (02:58 +0000)
commitd1f68d84f2cfdc3cf0f902fc3b44a181795648e5
treee58b9d42bea5fb1a1a1859c4288281b86a7f9f33
parent659c81ca4bfbbc536260ff15bb31da84d9366791
LU-9019 zfs: use 64-bit timestamps for brw stats

The debugfs brw stats interface contains timestamps that are
computed from timeval, which overflows in 2038 on 32-bit systems.

This changes the output to use a timespec64 type to avoid the
overflow. I also change the format to print the sub-second portion
as 9 digits (nanoseconds) for clarity, rather than printing six
digits without leading zeroes.

Change-Id: I34f3b02a0d5f80e9ae22a47f55445199332b3dc9
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/25411
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-zfs/osd_lproc.c