From 5b8826ddfd1c4fcdcfe9f78fd80cfeeac9de1b21 Mon Sep 17 00:00:00 2001 From: Stefan Behrens Date: Tue, 15 May 2012 11:30:39 +0200 Subject: Btrfs-progs: add command to get/reset device stats via ioctl "btrfs device stats" is used to retrieve and print the device stats. "btrfs device stats -z" is used to atomically retrieve, reset and print the stats. Signed-off-by: Stefan Behrens --- ctree.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index 1f5a795e..199f0288 100644 --- a/ctree.h +++ b/ctree.h @@ -1044,6 +1044,12 @@ struct btrfs_root { #define BTRFS_QGROUP_LIMIT_KEY 244 #define BTRFS_QGROUP_RELATION_KEY 246 +/* + * Persistently stores the io stats in the device tree. + * One key for all stats, (0, BTRFS_DEV_STATS_KEY, devid). + */ +#define BTRFS_DEV_STATS_KEY 249 + /* * string items are for debugging. They just store a short string of * data in the FS -- cgit v1.2.3