diff options
author | Sachin Pandit <spandit@redhat.com> | 2014-06-23 05:11:11 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2014-06-27 00:21:26 -0700 |
commit | fc1ae37ea4c353286f9a6f3d3e95041feee6ac7d (patch) | |
tree | 4eca989f8474aedcad1f0742148f6a6cec7a274f /xlators | |
parent | a98c4f8bb0517e961a30acdd3d0dce95aa68b96a (diff) |
glusterd/snapshot : Logging the soft-limit reach warning and
hard-limit failure.
Change-Id: I5083d30c04c784b7f134b8a919b84c225c25f806
BUG: 1112085
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Reviewed-on: http://review.gluster.org/8147
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |