From 364f5174210cb3fdac24f1bbe7a0fd9d68d7be7e Mon Sep 17 00:00:00 2001
From: Eli Collins <eli@cloudera.com>
Date: Tue, 12 Jan 2010 18:39:39 -0800
Subject: [PATCH] HDFS-857: Incorrect type for fuse-dfs capacity can cause df to return negative values on 32-bit machines

---
 src/contrib/fuse-dfs/src/fuse_impls_statfs.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/contrib/fuse-dfs/src/fuse_impls_statfs.c b/src/contrib/fuse-dfs/src/fuse_impls_statfs.c
index 4c0d462..1579903 100644
--- a/src/contrib/fuse-dfs/src/fuse_impls_statfs.c
+++ b/src/contrib/fuse-dfs/src/fuse_impls_statfs.c
@@ -43,9 +43,9 @@ int dfs_statfs(const char *path, struct statvfs *st)
     return -EIO;
   }
 
-  const long cap   = hdfsGetCapacity(userFS);
-  const long used  = hdfsGetUsed(userFS);
-  const long bsize = hdfsGetDefaultBlockSize(userFS);
+  const tOffset cap   = hdfsGetCapacity(userFS);
+  const tOffset used  = hdfsGetUsed(userFS);
+  const tOffset bsize = hdfsGetDefaultBlockSize(userFS);
 
   // fill in the statvfs structure
 
-- 
1.6.0.4

