summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2013-08-11 17:49:16 +0530
committerKrutika Dhananjay <kdhananj@redhat.com>2013-08-12 16:28:29 +0530
commit9945d6b51418e6e9175de93902761b8fd880ff3c (patch)
tree8317b2cd1b83de6383dc7f952e2421de607a9ca9 /xlators/mgmt
parent7e35da01d35301215a22cebce7b1b473a3e9e5a3 (diff)
glusterd,cli: Use 'packed' attribute while reading/writing xattrs from/to backend
Change-Id: I9229899361794d48bb2f741fb989bf025081987f Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-quota.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-quota.c b/xlators/mgmt/glusterd/src/glusterd-quota.c
index 846a9631..f8c2fd15 100644
--- a/xlators/mgmt/glusterd/src/glusterd-quota.c
+++ b/xlators/mgmt/glusterd/src/glusterd-quota.c
@@ -598,10 +598,16 @@ glusterd_set_quota_limit (char *volname, char *path, char *hard_limit,
glusterd_conf_t *priv = NULL;
double soft_lim = 0;
- struct {
+ /* FIX-ME:
+ * Either change the data-types of hl and sl here and in
+ * print_quota_list_output() to int64_t
+ * OR
+ * change the data-types of hard_lim and soft_lim_percent to uint64_t
+ */
+ struct quota_limits {
uint64_t hl;
uint64_t sl;
- } existing_limit, new_limit;
+ } __attribute__ ((__packed__)) existing_limit, new_limit;
this = THIS;
GF_ASSERT (this);