diff options
author | Avra Sengupta <asengupt@redhat.com> | 2013-12-18 01:01:47 +0000 |
---|---|---|
committer | Avra Sengupta <asengupt@redhat.com> | 2014-01-07 15:26:25 +0530 |
commit | 4afa88d6cc39be11f122489900af07b57a50fcc4 (patch) | |
tree | d7a829bc7be6e98a2979ff35410ddccd674395bb /xlators/mgmt/glusterd/src/glusterd.h | |
parent | a783136347ed2716f3f0ee0ca284f291f4e29652 (diff) |
glusterd/snapshot: Defining snap-max-soft-limit as a percentage of snap-max-hard-limit.
This patch also prohibits configuration of snap-max-hard-limit
and snap-max-soft-limit for snap volumes. Also displaying the
snapshot configs by reading data only from local node, as all
config data will be in sync across the cluster.
Change-Id: I635b925c02ed5b108cd10c7193b154ad82d5afad
BUG: 1043792
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index 343e6fe4d..f14b6737b 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -52,7 +52,9 @@ "S56glusterd-geo-rep-create-post.sh" -#define GLUSTERD_SNAPS_MAX_LIMIT 256 +#define GLUSTERD_SNAPS_MAX_HARD_LIMIT 256 +#define GLUSTERD_SNAPS_DEF_SOFT_LIMIT_PERCENT 90 +#define GLUSTERD_SNAPS_MAX_SOFT_LIMIT_PERCENT 100 #define GLUSTERD_SERVER_QUORUM "server" #define FMTSTR_CHECK_VOL_EXISTS "Volume %s does not exist" @@ -287,7 +289,6 @@ struct glusterd_volinfo_ { int brick_count; uint64_t snap_count; uint64_t snap_max_hard_limit; - uint64_t snap_max_soft_limit; struct list_head vol_list; struct list_head bricks; struct list_head snaps; |