From 11c2526e045a5a9b168175d5fd658302a8dcb31b Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sun, 10 Apr 2011 05:11:29 +0000 Subject: marker/quota: use correct byte order while storing xattr values in backend. Signed-off-by: Junaid Signed-off-by: Anand Avati BUG: 2604 (Quota: crossing the set limit) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604 --- xlators/features/marker/src/marker-quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features') 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 -- cgit