From 88c5c6458dc72ac9bee28b7b869a843542f964b3 Mon Sep 17 00:00:00 2001 From: "hongchao.zhang" Date: Fri, 2 Sep 2011 16:57:18 +0800 Subject: [PATCH] LU-610 fix the wrong data type in find_value_cmp in function find_value_cmp (lustre/utils/liblustreapi.c), the data type for paramters "file" and "limit" is converted from "unsigned long long" type into "unsigned int" type by mistake, and the file size should be defined as "unsigned long long" type too. Change-Id: Icacebccdf55d8ad761390bb03aa9aab0fdc67131 Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/1289 Tested-by: Hudson Reviewed-by: Andreas Dilger Reviewed-by: Yu Jian Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Oleg Drokin --- lustre/utils/liblustreapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 8625d4b..f935ded 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1865,8 +1865,9 @@ int llapi_file_lookup(int dirfd, const char *name) * -------------------------------------- * Note: 5th actually means that the value is within the interval * (limit - margin, limit]. */ -static int find_value_cmp(unsigned int file, unsigned int limit, int sign, - int negopt, unsigned long long margin, int mds) +static int find_value_cmp(unsigned long long file, unsigned long long limit, + int sign, int negopt, unsigned long long margin, + int mds) { int ret = -1; -- 1.8.3.1