]> git.baikalelectronics.ru Git - kernel.git/commit
dm stats: report precise_timestamps and histogram in @stats_list output
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Aug 2015 20:26:16 +0000 (16:26 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 18 Aug 2015 21:20:03 +0000 (17:20 -0400)
commitf6cb49fbb98a15ab2feb686ae9398b47bf9dc71e
tree238d475c49cc50ba1543e6692553a6a0f3b384e8
parent7ffea1fb518a086c32a6c9f4084352aa6445fae8
dm stats: report precise_timestamps and histogram in @stats_list output

If the user selected the precise_timestamps or histogram options, report
it in the @stats_list message output.

If the user didn't select these options, no extra tokens are reported,
thus it is backward compatible with old software that doesn't know about
precise timestamps and histogram.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 4.2
Documentation/device-mapper/statistics.txt
drivers/md/dm-stats.c
include/uapi/linux/dm-ioctl.h