From fc1ae37ea4c353286f9a6f3d3e95041feee6ac7d Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Mon, 23 Jun 2014 05:11:11 +0530 Subject: glusterd/snapshot : Logging the soft-limit reach warning and hard-limit failure. Change-Id: I5083d30c04c784b7f134b8a919b84c225c25f806 BUG: 1112085 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/8147 Reviewed-by: Prashanth Pai Reviewed-by: Atin Mukherjee Tested-by: Gluster Build System Reviewed-by: Rajesh Joseph Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 3f36cef42c5..6ff444862a4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -13628,6 +13628,13 @@ glusterd_is_snap_soft_limit_reached (glusterd_volinfo_t *volinfo, dict_t *dict) if (volinfo->snap_count >= limit && (strcmp (auto_delete, "enable") != 0)) { + + gf_log (this->name, GF_LOG_WARNING, "Soft-limit " + "(value = %"PRIu64") of volume %s is reached. " + "Snapshot creation is not possible once effective " + "hard-limit (value = %"PRIu64") is reached.", + limit, volinfo->volname, effective_max_limit); + ret = dict_set_int8 (dict, "soft-limit-reach", _gf_true); if (ret) { -- cgit