Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f38a6d
)
Branch: b_new_cmd
author
wangdi
<wangdi>
Mon, 16 Oct 2006 15:06:13 +0000
(15:06 +0000)
committer
wangdi
<wangdi>
Mon, 16 Oct 2006 15:06:13 +0000
(15:06 +0000)
replace atoi to strtoul, since atoi can not cast 0xffffffff to -1
lustre/tests/ll_dirstripe_verify.c
patch
|
blob
|
history
diff --git
a/lustre/tests/ll_dirstripe_verify.c
b/lustre/tests/ll_dirstripe_verify.c
index
a09f023
..
527fa9a
100644
(file)
--- a/
lustre/tests/ll_dirstripe_verify.c
+++ b/
lustre/tests/ll_dirstripe_verify.c
@@
-94,7
+94,7
@@
int compare(struct lov_user_md *lum_dir, struct lov_user_md *lum_file1,
if (read_proc_entry(tmp_path, buf, sizeof(buf)) < 0)
return 5;
- stripe_count =
atoi(buf)
;
+ stripe_count =
(int)strtoul(buf, NULL, 10);
;
} else {
stripe_count = (int)lum_dir->lmm_stripe_count;
}