summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/dmsetup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 3cc50459d..396e41f27 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -4999,6 +4999,7 @@ static int _stats_create_file(CMD_ARGS)
const char *alias, *program_id = DM_STATS_PROGRAM_ID;
const char *bounds_str = _string_args[BOUNDS_ARG];
uint64_t *regions, *region, count = 0;
+ int verbose = _switches[VERBOSE_ARG];
struct dm_histogram *bounds = NULL;
char *path, *abspath = NULL;
struct dm_stats *dms = NULL;
@@ -5086,6 +5087,10 @@ static int _stats_create_file(CMD_ARGS)
regions = dm_stats_create_regions_from_fd(dms, fd, group, precise,
bounds, alias);
+ if (!_switches[NOMONITOR_ARG] && group)
+ if (!dm_stats_start_filemapd(fd, regions[0], abspath, 0, verbose))
+ log_warn("Failed to start filemap monitoring daemon.");
+
if (close(fd))
log_error("Error closing %s", abspath);