Permalink
Browse files

simple messages to keep user updated on what the app is doing

  • Loading branch information...
1 parent 5502c0a commit 52a9305caaee0d868125e19c07e11a28782697f9 @tomato42 committed Aug 2, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lvmtsd.c
View
@@ -251,6 +251,8 @@ main_loop(struct program_params *pp)
goto cont;
}
+ printf("All high tiers full\n");
+
// pin extents to their current physical volumes, this will cause them
// to be moved only when the temperature difference is large
ret = add_pinning_scores(es, pp, lv_name);
@@ -280,6 +282,8 @@ main_loop(struct program_params *pp)
struct extents *curr_tier_min = NULL;
+ printf("trying to move extents from tier %i\n", tier);
+
if (!prev_tier_max) { // get base line extents
ret = extents_selector(es, &prev_tier_max, pp, lv_name, tier-1,
5, ES_HOT);
@@ -324,6 +328,8 @@ main_loop(struct program_params *pp)
fprintf(stderr, "%s:%i: queue extents failed\n", __FILE__, __LINE__);
goto no_cleanup;
}
+ } else {
+ printf("Nothing to do\n");
}
free_extents(curr_tier_min);

0 comments on commit 52a9305

Please sign in to comment.