[Ocfs2-tools-devel] [PATCH 1/3] tunefs.ocfs2: Use uint32_t instead of uint64_t for total_clusters.

Tao Ma tao.ma at oracle.com
Thu Mar 27 00:28:24 PDT 2008


In ocfs2, we always use uint32_t to indicate cluster count.
As total_clusters is always used as a uint32_t below, it must
be defined as uint64_t by mistake. So change it as uint32_t.

Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
 tunefs.ocfs2/sparse_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tunefs.ocfs2/sparse_file.c b/tunefs.ocfs2/sparse_file.c
index 9b9e0d9..f0eedb3 100644
--- a/tunefs.ocfs2/sparse_file.c
+++ b/tunefs.ocfs2/sparse_file.c
@@ -36,7 +36,7 @@ struct multi_link_file {
 
 struct list_ctxt {
 	ocfs2_filesys *fs;
-	uint64_t total_clusters;
+	uint32_t total_clusters;
 	char file_name[OCFS2_MAX_FILENAME_LEN];
 	int file_name_len;
 	uint64_t ino;
-- 
1.5.3.GIT



More information about the Ocfs2-tools-devel mailing list