From bac5e4db725c00141ff70ab1effdbb1d0fbee9e6 Mon Sep 17 00:00:00 2001 From: yujian Date: Sat, 17 Feb 2007 04:05:14 +0000 Subject: [PATCH] Remove the 4G limitation of maximum writing bytes. --- lustre/utils/loadgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/loadgen.c b/lustre/utils/loadgen.c index cfa453f..2e57ccd 100644 --- a/lustre/utils/loadgen.c +++ b/lustre/utils/loadgen.c @@ -150,7 +150,7 @@ struct command_t *trigger_cmd = NULL; pthread_mutex_t m_trigger = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cv_trigger = PTHREAD_COND_INITIALIZER; -long write_bytes; +__u64 write_bytes; pthread_mutex_t m_count = PTHREAD_MUTEX_INITIALIZER; static void trigger(struct command_t *cmd, int count) @@ -626,7 +626,7 @@ static void report_perf() diff = difftime(&end, &trigger_start); if (o_verbose > 2) { pthread_mutex_lock(&m_count); - printf("wrote %ldMB in %.3fs (%.3f MB/s)\n", + printf("wrote %lluMB in %.3fs (%.3f MB/s)\n", write_bytes >> 20, diff, (write_bytes >> 20) / diff); pthread_mutex_unlock(&m_count); -- 1.8.3.1