summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-04-10 05:11:29 +0000
committerAnand Avati <avati@gluster.com>2011-04-10 23:52:20 -0700
commit11c2526e045a5a9b168175d5fd658302a8dcb31b (patch)
treea2e909294294ae820671d88b30bcc3477a9d4b81 /xlators/features
parentef19a8ba4c0628566c01ebd247869797a7ba5dde (diff)
marker/quota: use correct byte order while storing xattr values in backend.
Signed-off-by: Junaid <junaid@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2604 (Quota: crossing the set limit) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/src/marker-quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 02c6c4cf767..0e457e58bbc 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -208,7 +208,7 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this,
QUOTA_ALLOC_OR_GOTO (delta, int64_t, ret, err);
- *delta = ntoh64 (ntoh64 (*size) - local->sum);
+ *delta = hton64 (ntoh64 (*size) - local->sum);
gf_log (this->name, GF_LOG_DEBUG, "calculated size = %"PRId64", "
"original size = %"PRIu64