From fb146f2f828d5e118976e73efac10e41f5d85956 Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Mon, 5 Aug 2013 13:15:55 -0400 Subject: [PATCH 8/8] dm stats: documented @stats_clear --- Documentation/device-mapper/dm-statistics.txt | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/device-mapper/dm-statistics.txt b/Documentation/device-mapper/dm-statistics.txt index 143c10e..15a2f85 100644 --- a/Documentation/device-mapper/dm-statistics.txt +++ b/Documentation/device-mapper/dm-statistics.txt @@ -27,6 +27,11 @@ Messages of areas @stats_create message creates new region and returns the region id. +@stats_clear + + region id returned from @stats_create +Clears all the counters except the in-flight i/o counters. + @stats_print region id returned from @stats_create @@ -40,8 +45,10 @@ meaning in bio-based device mapper. @stats_print_clear region id returned from @stats_create -@stats_print_clear prints the counters (like @stats_print) and clears -all the counters except the in-flight i/o counters. +@stats_print_clear atomically prints the counters (like @stats_print) +and clears all the counters except the in-flight i/o counters. Useful +when client consuming the statistics does not want to lose any +statistics (between printing and clearing). @stats_delete -- 1.7.1